diff options
author | Johns <johns98@gmx.net> | 2012-02-21 20:55:28 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-21 20:55:28 +0100 |
commit | 5d8dea1b6b9e15048f425f13b349e785a494cdb3 (patch) | |
tree | ac2fc34f5cff60e63b59fa8ed5bcd5d9f6a1d7fa /softhddevice.cpp | |
parent | 1f232db5b499169e3c354b4af4bb59053009f210 (diff) | |
download | vdr-plugin-softhddevice-5d8dea1b6b9e15048f425f13b349e785a494cdb3.tar.gz vdr-plugin-softhddevice-5d8dea1b6b9e15048f425f13b349e785a494cdb3.tar.bz2 |
New audio PES handling.
New easier and more flexible audio PES packet parser, which includes own
codec parser.
Removed av_parser use.
Reduced audio buffer time, faster channel switch.
New audio transport stream parser (not enabled as default).
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index d02580d..962d8d1 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -835,9 +835,11 @@ class cSoftHdDevice:public cDevice virtual void GetVideoSize(int &, int &, double &); virtual void GetOsdSize(int &, int &, double &); virtual int PlayVideo(const uchar *, int); - +#ifndef xxUSE_TS_AUDIO + virtual int PlayAudio(const uchar *, int, uchar); +#endif //virtual int PlayTsVideo(const uchar *, int); -#ifndef USE_AUDIO_THREAD // FIXME: testing none threaded +#if !defined(USE_AUDIO_THREAD) || defined(USE_TS_AUDIO) virtual int PlayTsAudio(const uchar *, int); #endif virtual void SetAudioChannelDevice(int); @@ -845,7 +847,6 @@ class cSoftHdDevice:public cDevice virtual void SetDigitalAudioDevice(bool); virtual void SetAudioTrackDevice(eTrackType); virtual void SetVolumeDevice(int); - virtual int PlayAudio(const uchar *, int, uchar); // Image Grab facilities @@ -1066,8 +1067,8 @@ bool cSoftHdDevice::Flush(int timeout_ms) ** Sets the video display format to the given one (only useful if this ** device has an MPEG decoder). */ -void cSoftHdDevice:: -SetVideoDisplayFormat(eVideoDisplayFormat video_display_format) +void cSoftHdDevice:: SetVideoDisplayFormat(eVideoDisplayFormat + video_display_format) { static int last = -1; @@ -1124,8 +1125,14 @@ void cSoftHdDevice::GetOsdSize(int &width, int &height, double &pixel_aspect) // ---------------------------------------------------------------------------- +#ifndef xxUSE_TS_AUDIO + /** ** Play a audio packet. +** +** @param data exactly one complete PES packet (which is incomplete) +** @param length length of PES packet +** @param id type of audio data this packet holds */ int cSoftHdDevice::PlayAudio(const uchar * data, int length, uchar id) { @@ -1134,6 +1141,8 @@ int cSoftHdDevice::PlayAudio(const uchar * data, int length, uchar id) return::PlayAudio(data, length, id); } +#endif + void cSoftHdDevice::SetAudioTrackDevice( __attribute__ ((unused)) eTrackType type) { @@ -1173,6 +1182,9 @@ void cSoftHdDevice::SetVolumeDevice(int volume) /** ** Play a video packet. +** +** @param data exactly one complete PES packet (which is incomplete) +** @param length length of PES packet */ int cSoftHdDevice::PlayVideo(const uchar * data, int length) { |