cExternalAudio Class Reference

#include <audio.h>

Inheritance diagram for cExternalAudio:

Inheritance graph
[legend]
Collaboration diagram for cExternalAudio:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cExternalAudio (const char *Command)
virtual ~cExternalAudio ()
virtual void Play (const uchar *Data, int Length, uchar Id)
virtual void Mute (bool On)
virtual void Clear (void)
 Clears all data that might still be awaiting processing.

Private Attributes

char * command
cPipe pipe
bool mute


Detailed Description

Definition at line 43 of file audio.h.


Constructor & Destructor Documentation

cExternalAudio::cExternalAudio ( const char *  Command  ) 

Definition at line 49 of file audio.c.

References command, and mute.

cExternalAudio::~cExternalAudio (  )  [virtual]

Definition at line 55 of file audio.c.

References command.


Member Function Documentation

void cExternalAudio::Play ( const uchar Data,
int  Length,
uchar  Id 
) [virtual]

Plays the given block of audio Data. Must return as soon as possible. If the entire block of data can't be processed immediately, it must be copied and processed in a separate thread. The Data is always a complete PES audio packet. Id indicates the type of audio data this packet holds.

Implements cAudio.

Definition at line 60 of file audio.c.

References command, esyslog, LOG_ERROR, mute, cPipe::Open(), pipe, and cDvbDevice::SetTransferModeForDolbyDigital().

Here is the call graph for this function:

void cExternalAudio::Mute ( bool  On  )  [virtual]

Immediately sets the audio device to be silent (On==true) or to normal replay (On==false).

Implements cAudio.

Definition at line 89 of file audio.c.

References Clear(), and mute.

Here is the call graph for this function:

void cExternalAudio::Clear ( void   )  [virtual]

Clears all data that might still be awaiting processing.

Implements cAudio.

Definition at line 96 of file audio.c.

References cPipe::Close(), and pipe.

Referenced by Mute().

Here is the call graph for this function:


Member Data Documentation

char* cExternalAudio::command [private]

Definition at line 45 of file audio.h.

Referenced by cExternalAudio(), Play(), and ~cExternalAudio().

Definition at line 46 of file audio.h.

Referenced by Clear(), and Play().

bool cExternalAudio::mute [private]

Definition at line 47 of file audio.h.

Referenced by cExternalAudio(), Mute(), and Play().


The documentation for this class was generated from the following files:

Generated on Tue Nov 4 19:58:57 2008 for VDR by  doxygen 1.5.6