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

#include <AESinkDARWINOSX.h>

Inheritance diagram for CAESinkDARWINOSX:
IAESink

Public Member Functions

const char * GetName () override
 
 CAESinkDARWINOSX ()
 
 ~CAESinkDARWINOSX () override
 
bool Initialize (AEAudioFormat &format, std::string &device) override
 
void Deinitialize () override
 
void GetDelay (AEDelayStatus &status) override
 Return a timestamped status structure with delay and sink info.
 
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 Drain () override
 
- Public Member Functions inherited from IAESink
 IAESink ()=default
 
virtual ~IAESink ()=default
 
virtual double GetLatency ()
 
virtual void AddPause (unsigned int millis)
 instruct the sink to add a pause
 
virtual bool HasVolume ()
 
virtual void SetVolume (float volume)
 

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ CAESinkDARWINOSX()

CAESinkDARWINOSX::CAESinkDARWINOSX ( )

◆ ~CAESinkDARWINOSX()

CAESinkDARWINOSX::~CAESinkDARWINOSX ( )
override

Member Function Documentation

◆ AddPackets()

unsigned int CAESinkDARWINOSX::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.

◆ Create()

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

◆ Deinitialize()

void CAESinkDARWINOSX::Deinitialize ( )
overridevirtual

Implements IAESink.

◆ Drain()

void CAESinkDARWINOSX::Drain ( )
overridevirtual

Reimplemented from IAESink.

◆ EnumerateDevicesEx()

void CAESinkDARWINOSX::EnumerateDevicesEx ( AEDeviceInfoList & list,
bool force )
static

◆ GetCacheTotal()

double CAESinkDARWINOSX::GetCacheTotal ( )
overridevirtual

Implements IAESink.

◆ GetDelay()

void CAESinkDARWINOSX::GetDelay ( AEDelayStatus & status)
overridevirtual

Return a timestamped status structure with delay and sink info.

Parameters
statusstructure filled with sink status

Implements IAESink.

◆ GetName()

const char * CAESinkDARWINOSX::GetName ( )
inlineoverridevirtual

Implements IAESink.

◆ Initialize()

bool CAESinkDARWINOSX::Initialize ( AEAudioFormat & format,
std::string & device )
overridevirtual
Todo
Should we use the virtual format to determine our data format?

Implements IAESink.

◆ Register()

void CAESinkDARWINOSX::Register ( )
static

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