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);
virtual ~cAudio() override
void PlayAudio(const uchar *Data, int Length, uchar Id)
void PlayTsAudio(const uchar *Data, int Length)
static void SetTransferModeForDolbyDigital(int Mode)
virtual void Play(const uchar *Data, int Length, uchar Id) override
Plays the given block of audio Data.
virtual void Clear(void) override
Clears all data that might still be awaiting processing.
virtual void Mute(bool On) override
Immediately sets the audio device to be silent (On==true) or to normal replay (On==false).
virtual ~cExternalAudio() override
cExternalAudio(const char *Command)
virtual void PlayTs(const uchar *Data, int Length) override
Plays the given block of audio Data.
void Add(cListObject *Object, cListObject *After=NULL)
const cAudio * Next(const cAudio *Object) const
< Returns the element immediately before Object in this list, or NULL if Object is the first element ...
const cAudio * First(void) const
Returns the first element in this list, or NULL if the list is empty.
bool Open(const char *Command, const char *Mode)