diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-19 15:50:11 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-19 15:50:11 +0200 |
commit | 9f9d6a8a9354960eb9c42f9c45ed507f05804ff4 (patch) | |
tree | 6e7de2a8ce6d3cedc78038e4d70ef2ff56f24528 /dvbapi.c | |
parent | 82725f53b5c23d3436f3b71845a1b61447b9780f (diff) | |
download | vdr-9f9d6a8a9354960eb9c42f9c45ed507f05804ff4.tar.gz vdr-9f9d6a8a9354960eb9c42f9c45ed507f05804ff4.tar.bz2 |
Implemented cStatusMonitor to allow plugins to set up a status monitor
Diffstat (limited to 'dvbapi.c')
-rw-r--r-- | dvbapi.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.c 1.178 2002/05/18 14:26:08 kls Exp $ + * $Id: dvbapi.c 1.179 2002/05/19 14:46:38 kls Exp $ */ #include "dvbapi.h" @@ -25,6 +25,7 @@ extern "C" { #include "recording.h" #include "remux.h" #include "ringbuffer.h" +#include "status.h" #include "tools.h" #include "videodir.h" @@ -2124,6 +2125,8 @@ eSetChannelResult cDvbApi::SetChannel(int ChannelNumber, int Frequency, char Pol StopTransfer(); StopReplay(); + cStatusMonitor::MsgChannelSwitch(this, 0); + // Must set this anyway to avoid getting stuck when switching through // channels with 'Up' and 'Down' keys: currentChannel = ChannelNumber; @@ -2303,6 +2306,8 @@ eSetChannelResult cDvbApi::SetChannel(int ChannelNumber, int Frequency, char Pol if (Result == scrOk && siProcessor) siProcessor->SetCurrentTransponder(Frequency); + cStatusMonitor::MsgChannelSwitch(this, ChannelNumber); + return Result; } @@ -2546,6 +2551,7 @@ void cDvbApi::SetVolume(int Volume, bool Absolute) audioMixer_t am; am.volume_left = am.volume_right = volume; CHECK(ioctl(fd_audio, AUDIO_SET_MIXER, &am)); + cStatusMonitor::MsgSetVolume(volume, Absolute); if (volume > 0) mute = false; } |