|
vdr
1.7.27
|
#include <audio.h>
Public Member Functions | |
| cExternalAudio (const char *Command) | |
| virtual | ~cExternalAudio () |
| virtual void | Play (const uchar *Data, int Length, uchar Id) |
| virtual void | PlayTs (const uchar *Data, int Length) |
| virtual void | Mute (bool On) |
| virtual void | Clear (void) |
| cExternalAudio (const char *Command) | |
| virtual | ~cExternalAudio () |
| virtual void | Play (const uchar *Data, int Length, uchar Id) |
| virtual void | PlayTs (const uchar *Data, int Length) |
| virtual void | Mute (bool On) |
| virtual void | Clear (void) |
Private Attributes | |
| char * | command |
| cPipe | pipe |
| bool | mute |
| cExternalAudio::cExternalAudio | ( | const char * | Command | ) |
Definition at line 55 of file audio.c.
References command, mute, and cDvbDevice::SetTransferModeForDolbyDigital().
| cExternalAudio::~cExternalAudio | ( | ) | [virtual] |
| cExternalAudio::cExternalAudio | ( | const char * | Command | ) |
| virtual cExternalAudio::~cExternalAudio | ( | ) | [virtual] |
| void cExternalAudio::Clear | ( | void | ) | [virtual] |
| virtual void cExternalAudio::Clear | ( | void | ) | [virtual] |
Clears all data that might still be awaiting processing.
Implements cAudio.
| void cExternalAudio::Mute | ( | bool | On | ) | [virtual] |
| virtual void cExternalAudio::Mute | ( | bool | On | ) | [virtual] |
Immediately sets the audio device to be silent (On==true) or to normal replay (On==false).
Implements cAudio.
| virtual 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.
| 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 67 of file audio.c.
References command, esyslog, LOG_ERROR, mute, cPipe::Open(), and pipe.
| virtual void cExternalAudio::PlayTs | ( | const uchar * | Data, |
| int | Length | ||
| ) | [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 TS audio packet.
Implements cAudio.
| void cExternalAudio::PlayTs | ( | const uchar * | Data, |
| int | Length | ||
| ) | [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 TS audio packet.
Implements cAudio.
Definition at line 95 of file audio.c.
References command, esyslog, LOG_ERROR, mute, cPipe::Open(), and pipe.
char * cExternalAudio::command [private] |
Definition at line 51 of file audio.h.
Referenced by cExternalAudio(), Play(), PlayTs(), and ~cExternalAudio().
bool cExternalAudio::mute [private] |
cPipe cExternalAudio::pipe [private] |
1.8.0