summaryrefslogtreecommitdiff
path: root/dxr3audio.h
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-12-09 12:33:30 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-12-09 12:33:30 +0100
commit20a8ac86da1f1a75bbc9f8a863de455babccb0c1 (patch)
tree23f7d375d129e3fa73b739ec85294c50616bf7ea /dxr3audio.h
parentc9459a581236bb1a8329a2f8efadd43f47ee4cce (diff)
downloadvdr-plugin-dxr3-20a8ac86da1f1a75bbc9f8a863de455babccb0c1.tar.gz
vdr-plugin-dxr3-20a8ac86da1f1a75bbc9f8a863de455babccb0c1.tar.bz2
change structure of iAudio class
This change introduces some bigger changes in how analog/digital audio will be handled. VDR notifices the plugin via cDxr3Device::SetDigitalAudioDevice, if if the we need to use analog or digital audio. With digital audio I mean digital PCM. Based on the informations get via the pes packet ac3dts will be switched on or off. So the svdrp commands SDO, SAO and SAC3 do not make sense at the moment.
Diffstat (limited to 'dxr3audio.h')
-rw-r--r--dxr3audio.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/dxr3audio.h b/dxr3audio.h
index e6039d9..e508839 100644
--- a/dxr3audio.h
+++ b/dxr3audio.h
@@ -31,12 +31,6 @@ struct SampleContext {
class iAudio {
public:
- enum AudioMode {
- Analog,
- DigitalPcm,
- Ac3,
- };
-
iAudio();
virtual ~iAudio() {}
@@ -52,13 +46,10 @@ public:
void setAudioChannel(int channel) { audioChannel = channel; }
int getAudioChannel() { return audioChannel; }
- virtual void setDigitalAudio(bool on) { digitalAudio = on; }
+ virtual void setDigitalAudio(bool on) = 0;
bool isDigitalAudio() { return digitalAudio; }
- virtual void setAudioMode(AudioMode m) = 0;
- AudioMode getAudioMode() { return mode; }
-
- bool isAudioModeAC3() { return mode == Ac3; }
+ bool isAc3Dts() { return ac3dts; }
protected:
@@ -67,7 +58,7 @@ protected:
int audioChannel;
bool digitalAudio;
SampleContext curContext;
- AudioMode mode;
+ bool ac3dts;
};
#endif /*_AUDIO_H_*/