diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-13 09:54:51 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-13 09:54:51 +0100 |
commit | e972c0464adc6cb21de16867473f3f6ddefcb2bb (patch) | |
tree | 500ef6e0cab883cc1f682cfe897d7e23572d647b | |
parent | 78598e1a0a72891765db618f46a99a3dd477776d (diff) | |
download | vdr-e972c0464adc6cb21de16867473f3f6ddefcb2bb.tar.gz vdr-e972c0464adc6cb21de16867473f3f6ddefcb2bb.tar.bz2 |
cAudio::Play() now also gets the 0xC0...0xDF audio
-rw-r--r-- | HISTORY | 5 | ||||
-rw-r--r-- | PLUGINS.html | 6 | ||||
-rw-r--r-- | device.c | 7 |
3 files changed, 12 insertions, 6 deletions
@@ -3390,8 +3390,9 @@ Video Disk Recorder Revision History - Forcing a new resync after a call to cRemux::Clear() (suggested by Marco Schlüßler). - The cAudio::Play() function now has an additional parameter 'uchar Id' which tells the function the substream id of the given audio packet, so that a plugin can - take the right action for the various kinds if audio data (based on suggestions - by Werner Fink and Macro Schlüßler). + take the right action for the various kinds if audio data - which now also includes + "normal" audio with ids 0xC0...0xDF (based on suggestions by Werner Fink and Macro + Schlüßler). - Removed the "Cleared/PlayPes(NULL, 0)" handling from cTransfer::Action(), since this is now done when attaching the player to the device (thanks to Marco Schlüßler). - Making sure the buffer reserve in cTransfer::Action() is re-established after diff --git a/PLUGINS.html b/PLUGINS.html index 49f5ff72..67b96d93 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -81,7 +81,9 @@ structures and allows it to hook itself into specific areas to perform special a <li><a href="#Skins">Skins</a> <li><a href="#Themes">Themes</a> <li><a href="#Devices">Devices</a> -<li><a href="#Dolby Digital">Dolby Digital</a> +<!--X1.3.21--><table width=100%><tr><td bgcolor=#FF0000> </td><td width=100%> +<li><a href="#Audio">Audio</a> +<!--X1.3.21--></td></tr></table> <li><a href="#Remote Control">Remote Control</a> </ul> </ul> @@ -1656,7 +1658,7 @@ shut down (delete) all devices when the program terminates. It is therefore important that the devices are created on the heap, using the <tt>new</tt> operator! -<a name="Dolby Digital"><hr><h2>Dolby Digital</h2> +<a name="Audio"><hr><h2>Audio</h2> <center><i><b>"The stereo effect may only be experienced if stereo equipment is used!"</b></i></center><p> @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.91 2005/02/12 16:29:49 kls Exp $ + * $Id: device.c 1.92 2005/02/13 09:51:48 kls Exp $ */ #include "device.h" @@ -883,8 +883,11 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly) break; case 0xC0 ... 0xDF: // audio SetAvailableTrack(ttAudio, c - 0xC0, c); - if (!VideoOnly && c == availableTracks[currentAudioTrack].id) + if (!VideoOnly && c == availableTracks[currentAudioTrack].id) { w = PlayAudio(Start, d); + if (FirstLoop) + Audios.PlayAudio(Data, Length, c); + } break; case 0xBD: { // private stream 1 int PayloadOffset = Data[8] + 9; |