From 5fdc421a10da88f670ed44851e12554b36dd7a76 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 4 Feb 2006 10:24:43 +0100 Subject: Added an 'Id' parameter to cDevice::PlayAudio() to allow plugins to easier process the audio data --- device.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'device.h') 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 -- cgit v1.2.3