diff options
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index 5f048b0..97cb12a 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -35,6 +35,7 @@ #include "softhddevice.h" extern "C" { #include "video.h" + extern void AudioPoller(void); } ////////////////////////////////////////////////////////////////////////////// @@ -332,6 +333,9 @@ class cSoftHdDevice:public cDevice virtual void GetOsdSize(int &, int &, double &); virtual int PlayVideo(const uchar *, int); //virtual int PlayTsVideo(const uchar *, int); +#ifdef USE_OSS // FIXME: testing only oss + virtual int PlayTsAudio(const uchar *, int); +#endif virtual void SetAudioChannelDevice(int); virtual int GetAudioChannelDevice(void); virtual void SetDigitalAudioDevice(bool); @@ -569,6 +573,20 @@ int cSoftHdDevice::PlayTsVideo(const uchar * Data, int Length) } #endif +#ifdef USE_OSS // FIXME: testing only oss +/// +/// Play a TS audio packet. +/// +/// misuse this function as audio poller +/// +int cSoftHdDevice::PlayTsAudio(const uchar * data, int length) +{ + AudioPoller(); + + return cDevice::PlayTsAudio(data,length); +} +#endif + uchar *cSoftHdDevice::GrabImage(int &size, bool jpeg, int quality, int sizex, int sizey) { |