diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-04 10:24:43 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-04 10:24:43 +0100 |
commit | 5fdc421a10da88f670ed44851e12554b36dd7a76 (patch) | |
tree | 77f4e90775922bd1437cd4caba6e42c068265b3a /device.h | |
parent | f0741c95c02f81ac607493bfa891bddfa64bbbf2 (diff) | |
download | vdr-5fdc421a10da88f670ed44851e12554b36dd7a76.tar.gz vdr-5fdc421a10da88f670ed44851e12554b36dd7a76.tar.bz2 |
Added an 'Id' parameter to cDevice::PlayAudio() to allow plugins to easier process the audio data
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.h 1.70 2006/01/08 10:10:26 kls Exp $ + * $Id: device.h 1.71 2006/02/04 10:22:54 kls Exp $ */ #ifndef __DEVICE_H @@ -424,9 +424,10 @@ protected: ///< Length) or not at all (returning 0 or -1 and setting 'errno' to EAGAIN). ///< \return Returns the number of bytes actually taken from Data, or -1 ///< in case of an error. - virtual int PlayAudio(const uchar *Data, int Length); + virtual int PlayAudio(const uchar *Data, int Length, uchar Id); ///< Plays the given data block as audio. ///< Data points to exactly one complete PES packet of the given Length. + ///< Id indicates the type of audio data this packet holds. ///< PlayAudio() shall process the packet either as a whole (returning ///< Length) or not at all (returning 0 or -1 and setting 'errno' to EAGAIN). ///< \return Returns the number of bytes actually taken from Data, or -1 |