xbmc
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
CAESinkAUDIOTRACK Class Reference
Inheritance diagram for CAESinkAUDIOTRACK:
Inheritance graph
[legend]
Collaboration diagram for CAESinkAUDIOTRACK:
Collaboration graph
[legend]

Public Member Functions

const char * GetName () override
 
bool Initialize (AEAudioFormat &format, std::string &device) override
 
void Deinitialize () override
 
bool IsInitialized ()
 
void GetDelay (AEDelayStatus &status) override
 Return a timestamped status structure with delay and sink info. More...
 
double GetLatency () override
 
double GetCacheTotal () override
 
unsigned int AddPackets (uint8_t **data, unsigned int frames, unsigned int offset) override
 Adds packets to be sent out, this routine MUST block or sleep. More...
 
void AddPause (unsigned int millis) override
 instruct the sink to add a pause More...
 
void Drain () override
 
- Public Member Functions inherited from IAESink
virtual bool HasVolume ()
 
virtual void SetVolume (float volume)
 

Static Public Member Functions

static void EnumerateDevicesEx (AEDeviceInfoList &list, bool force=false)
 
static void Register ()
 
static std::unique_ptr< IAESinkCreate (std::string &device, AEAudioFormat &desiredFormat)
 

Protected Member Functions

int AudioTrackWrite (char *audioData, int offsetInBytes, int sizeInBytes)
 
int AudioTrackWrite (char *audioData, int sizeInBytes, int64_t timestamp)
 

Static Protected Member Functions

static jni::CJNIAudioTrack * CreateAudioTrack (int stream, int sampleRate, int channelMask, int encoding, int bufferSize)
 
static bool IsSupported (int sampleRateInHz, int channelConfig, int audioFormat)
 
static bool VerifySinkConfiguration (int sampleRate, int channelMask, int encoding, bool isRaw=false)
 
static void UpdateAvailablePCMCapabilities ()
 
static void UpdateAvailablePassthroughCapabilities (bool isRaw=false)
 

Member Function Documentation

◆ AddPackets()

unsigned int CAESinkAUDIOTRACK::AddPackets ( uint8_t **  data,
unsigned int  frames,
unsigned int  offset 
)
overridevirtual

Adds packets to be sent out, this routine MUST block or sleep.

Parameters
dataarray of pointers to planes holding audio data
framesnumber of audio frames in data
offsetoffset in frames where audio data starts
Returns
number of frames consumed by the sink

Implements IAESink.

◆ AddPause()

void CAESinkAUDIOTRACK::AddPause ( unsigned int  millis)
overridevirtual

instruct the sink to add a pause

Parameters
millisms to pause

Reimplemented from IAESink.

◆ GetDelay()

void CAESinkAUDIOTRACK::GetDelay ( AEDelayStatus status)
overridevirtual

Return a timestamped status structure with delay and sink info.

Parameters
statusstructure filled with sink status

Implements IAESink.


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