32 audio->Play(Data, Length, Id);
38 audio->PlayTs(Data, Length);
71 if (0x80 <= Id && Id <= 0x87 || Id == 0xBD) {
72 int written = Data[8] + 9;
77 int w = fwrite(Data + written, 1, Length,
pipe);
101 int w = fwrite(Data + written, 1, Length,
pipe);
void PlayAudio(const uchar *Data, int Length, uchar Id)
void PlayTsAudio(const uchar *Data, int Length)
static void SetTransferModeForDolbyDigital(int Mode)
virtual void Mute(bool On)
Immediately sets the audio device to be silent (On==true) or to normal replay (On==false).
virtual ~cExternalAudio()
virtual void Play(const uchar *Data, int Length, uchar Id)
Plays the given block of audio Data.
virtual void Clear(void)
Clears all data that might still be awaiting processing.
cExternalAudio(const char *Command)
virtual void PlayTs(const uchar *Data, int Length)
Plays the given block of audio Data.
const cAudio * First(void) const
const cAudio * Next(const cAudio *Object) const