diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-11-03 11:53:58 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-11-03 11:53:58 +0100 |
commit | 0a517afdf8c4824d2961c477bda753ca81e800db (patch) | |
tree | 6b65f2e9fb1adabc297e3d700608c1f915fc15cf /device.h | |
parent | 2e26a1d607b45bff095e93649d830cf7146be5f1 (diff) | |
download | vdr-0a517afdf8c4824d2961c477bda753ca81e800db.tar.gz vdr-0a517afdf8c4824d2961c477bda753ca81e800db.tar.bz2 |
Implemented audio plugin interface
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 10 |
1 files changed, 8 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.26 2002/11/01 11:03:56 kls Exp $ + * $Id: device.h 1.27 2002/11/03 11:16:11 kls Exp $ */ #ifndef __DEVICE_H @@ -290,6 +290,8 @@ public: // times. virtual void Clear(void); // Clears all video and audio data from the device. + // A derived class must call the base class function to make sure + // all registered cAudio objects are notified. virtual void Play(void); // Sets the device into play mode (after a previous trick // mode). @@ -297,6 +299,8 @@ public: // Puts the device into "freeze frame" mode. virtual void Mute(void); // Turns off audio while replaying. + // A derived class must call the base class function to make sure + // all registered cAudio objects are notified. virtual void StillPicture(const uchar *Data, int Length); // Displays the given I-frame as a still picture. virtual bool Poll(cPoller &Poller, int TimeoutMs = 0); @@ -309,8 +313,10 @@ public: // Actually plays the given data block as video. The data must be // part of a PES (Packetized Elementary Stream) which can contain // one video and one audio strem. - virtual int PlayAudio(const uchar *Data, int Length); + virtual void PlayAudio(const uchar *Data, int Length); // Plays additional audio streams, like Dolby Digital. + // A derived class must call the base class function to make sure data + // is distributed to all registered cAudio objects. bool Replaying(void) const; // Returns true if we are currently replaying. void StopReplay(void); |