#include <audio.h>
Definition at line 49 of file audio.h.
◆ cExternalAudio()
cExternalAudio::cExternalAudio |
( |
const char * |
Command | ) |
|
◆ ~cExternalAudio()
cExternalAudio::~cExternalAudio |
( |
| ) |
|
|
overridevirtual |
◆ Clear()
void cExternalAudio::Clear |
( |
void |
| ) |
|
|
overridevirtual |
◆ Mute()
void cExternalAudio::Mute |
( |
bool |
On | ) |
|
|
overridevirtual |
Immediately sets the audio device to be silent (On==true) or to normal replay (On==false).
Implements cAudio.
Definition at line 118 of file audio.c.
References Clear(), and mute.
◆ Play()
void cExternalAudio::Play |
( |
const uchar * |
Data, |
|
|
int |
Length, |
|
|
uchar |
Id |
|
) |
| |
|
overridevirtual |
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.
◆ PlayTs()
void cExternalAudio::PlayTs |
( |
const uchar * |
Data, |
|
|
int |
Length |
|
) |
| |
|
overridevirtual |
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.
◆ command
char* cExternalAudio::command |
|
private |
◆ mute
bool cExternalAudio::mute |
|
private |
◆ pipe
cPipe cExternalAudio::pipe |
|
private |
The documentation for this class was generated from the following files: