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

#include <AESinkDirectSound.h>

Inheritance diagram for CAESinkDirectSound:
IAESink

Public Member Functions

virtual const char * GetName ()
 
 CAESinkDirectSound ()
 
virtual ~CAESinkDirectSound ()
 
virtual bool Initialize (AEAudioFormat &format, std::string &device)
 
virtual void Deinitialize ()
 
virtual void Stop ()
 
virtual void Drain ()
 
virtual void GetDelay (AEDelayStatus &status)
 Return a timestamped status structure with delay and sink info.
 
virtual double GetCacheTotal ()
 
virtual unsigned int AddPackets (uint8_t **data, unsigned int frames, unsigned int offset)
 Adds packets to be sent out, this routine MUST block or sleep.
 
- 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 std::unique_ptr< IAESinkCreate (std::string &device, AEAudioFormat &desiredFormat)
 
static std::string GetDefaultDevice ()
 
static void EnumerateDevicesEx (AEDeviceInfoList &deviceInfoList, bool force=false)
 

Constructor & Destructor Documentation

◆ CAESinkDirectSound()

CAESinkDirectSound::CAESinkDirectSound ( )

◆ ~CAESinkDirectSound()

CAESinkDirectSound::~CAESinkDirectSound ( )
virtual

Member Function Documentation

◆ AddPackets()

unsigned int CAESinkDirectSound::AddPackets ( uint8_t ** data,
unsigned int frames,
unsigned int offset )
virtual

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 > CAESinkDirectSound::Create ( std::string & device,
AEAudioFormat & desiredFormat )
static

◆ Deinitialize()

void CAESinkDirectSound::Deinitialize ( )
virtual

Implements IAESink.

◆ Drain()

void CAESinkDirectSound::Drain ( )
virtual

Reimplemented from IAESink.

◆ EnumerateDevicesEx()

void CAESinkDirectSound::EnumerateDevicesEx ( AEDeviceInfoList & deviceInfoList,
bool force = false )
static

◆ GetCacheTotal()

double CAESinkDirectSound::GetCacheTotal ( )
virtual

returns total cache capacity in seconds

Implements IAESink.

◆ GetDefaultDevice()

std::string CAESinkDirectSound::GetDefaultDevice ( )
static

◆ GetDelay()

void CAESinkDirectSound::GetDelay ( AEDelayStatus & status)
virtual

Return a timestamped status structure with delay and sink info.

Parameters
statusstructure filled with sink status

returns current cached data duration in seconds

Implements IAESink.

◆ GetName()

virtual const char * CAESinkDirectSound::GetName ( )
inlinevirtual

Implements IAESink.

◆ Initialize()

bool CAESinkDirectSound::Initialize ( AEAudioFormat & format,
std::string & device )
virtual

Better position accuracy

Vista+ accurate position

Allows background playing

Implements IAESink.

◆ Register()

void CAESinkDirectSound::Register ( )
static

◆ Stop()

void CAESinkDirectSound::Stop ( )
virtual

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