vdr 2.7.6
cExternalAudio Class Reference

#include <audio.h>

Public Member Functions

 cExternalAudio (const char *Command)
virtual ~cExternalAudio () override
virtual void Play (const uchar *Data, int Length, uchar Id) override
virtual void PlayTs (const uchar *Data, int Length) override
virtual void Mute (bool On) override
virtual void Clear (void) override
Public Member Functions inherited from cAudio
virtual ~cAudio () override
Public Member Functions inherited from cListObject
 cListObject (void)
virtual ~cListObject ()
virtual int Compare (const cListObject &ListObject) const
void Append (cListObject *Object)
void Insert (cListObject *Object)
void Unlink (void)
int Index (void) const
cListObjectPrev (void) const
cListObjectNext (void) const

Private Attributes

char * command
cPipe pipe
bool mute

Additional Inherited Members

Protected Member Functions inherited from cAudio
 cAudio (void)

Detailed Description

Definition at line 49 of file audio.h.

Constructor & Destructor Documentation

◆ cExternalAudio()

cExternalAudio::cExternalAudio ( const char * Command)

Definition at line 55 of file audio.c.

References command, mute, and cDvbDevice::SetTransferModeForDolbyDigital().

◆ ~cExternalAudio()

cExternalAudio::~cExternalAudio ( )
overridevirtual

Definition at line 62 of file audio.c.

References command.

Member Function Documentation

◆ Clear()

void cExternalAudio::Clear ( void )
overridevirtual

Clears all data that might still be awaiting processing.

Implements cAudio.

Definition at line 125 of file audio.c.

References pipe.

Referenced by Mute().

◆ 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, 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, and pipe.

Member Data Documentation

◆ command

char* cExternalAudio::command
private

Definition at line 51 of file audio.h.

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

◆ mute

bool cExternalAudio::mute
private

Definition at line 53 of file audio.h.

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

◆ pipe

cPipe cExternalAudio::pipe
private

Definition at line 52 of file audio.h.

Referenced by Clear(), Play(), and PlayTs().


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