Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CAESinkAUDIOTRACK Class Reference

#include <AESinkAUDIOTRACK.h>

Inheritance diagram for CAESinkAUDIOTRACK:
IAESink

Public Member Functions

const char * GetName () override
 
 CAESinkAUDIOTRACK ()
 
 ~CAESinkAUDIOTRACK () 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.
 
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.
 
void AddPause (unsigned int millis) override
 instruct the sink to add a pause
 
void Drain () override
 
- Public Member Functions inherited from IAESink
 IAESink ()=default
 
virtual ~IAESink ()=default
 
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)
 

Constructor & Destructor Documentation

◆ CAESinkAUDIOTRACK()

CAESinkAUDIOTRACK::CAESinkAUDIOTRACK ( )

◆ ~CAESinkAUDIOTRACK()

CAESinkAUDIOTRACK::~CAESinkAUDIOTRACK ( )
override

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.

◆ AudioTrackWrite() [1/2]

int CAESinkAUDIOTRACK::AudioTrackWrite ( char * audioData,
int offsetInBytes,
int sizeInBytes )
protected

◆ AudioTrackWrite() [2/2]

int CAESinkAUDIOTRACK::AudioTrackWrite ( char * audioData,
int sizeInBytes,
int64_t timestamp )
protected

◆ Create()

std::unique_ptr< IAESink > CAESinkAUDIOTRACK::Create ( std::string & device,
AEAudioFormat & desiredFormat )
static

◆ CreateAudioTrack()

jni::CJNIAudioTrack * CAESinkAUDIOTRACK::CreateAudioTrack ( int stream,
int sampleRate,
int channelMask,
int encoding,
int bufferSize )
staticprotected

◆ Deinitialize()

void CAESinkAUDIOTRACK::Deinitialize ( )
overridevirtual

Implements IAESink.

◆ Drain()

void CAESinkAUDIOTRACK::Drain ( )
overridevirtual

Reimplemented from IAESink.

◆ EnumerateDevicesEx()

void CAESinkAUDIOTRACK::EnumerateDevicesEx ( AEDeviceInfoList & list,
bool force = false )
static

◆ GetCacheTotal()

double CAESinkAUDIOTRACK::GetCacheTotal ( )
overridevirtual

Implements 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.

◆ GetLatency()

double CAESinkAUDIOTRACK::GetLatency ( )
overridevirtual

Reimplemented from IAESink.

◆ GetName()

const char * CAESinkAUDIOTRACK::GetName ( )
inlineoverridevirtual

Implements IAESink.

◆ Initialize()

bool CAESinkAUDIOTRACK::Initialize ( AEAudioFormat & format,
std::string & device )
overridevirtual

Implements IAESink.

◆ IsInitialized()

bool CAESinkAUDIOTRACK::IsInitialized ( )

◆ IsSupported()

bool CAESinkAUDIOTRACK::IsSupported ( int sampleRateInHz,
int channelConfig,
int audioFormat )
staticprotected

◆ Register()

void CAESinkAUDIOTRACK::Register ( )
static

◆ UpdateAvailablePassthroughCapabilities()

void CAESinkAUDIOTRACK::UpdateAvailablePassthroughCapabilities ( bool isRaw = false)
staticprotected

◆ UpdateAvailablePCMCapabilities()

void CAESinkAUDIOTRACK::UpdateAvailablePCMCapabilities ( )
staticprotected

◆ VerifySinkConfiguration()

bool CAESinkAUDIOTRACK::VerifySinkConfiguration ( int sampleRate,
int channelMask,
int encoding,
bool isRaw = false )
staticprotected

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