summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-04 10:24:43 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-04 10:24:43 +0100
commit5fdc421a10da88f670ed44851e12554b36dd7a76 (patch)
tree77f4e90775922bd1437cd4caba6e42c068265b3a /device.h
parentf0741c95c02f81ac607493bfa891bddfa64bbbf2 (diff)
downloadvdr-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/device.h b/device.h
index eb409f9c..f250ec1e 100644
--- a/device.h
+++ b/device.h
@@ -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