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

#include <CoreAudioStream.h>

Public Member Functions

 CCoreAudioStream ()
 
virtual ~CCoreAudioStream ()
 
bool Open (AudioStreamID streamId)
 
void Close (bool restore=true)
 
AudioStreamID GetId () const
 
UInt32 GetDirection ()
 
UInt32 GetNumLatencyFrames ()
 
bool GetVirtualFormat (AudioStreamBasicDescription *pDesc)
 
bool GetPhysicalFormat (AudioStreamBasicDescription *pDesc)
 
bool SetVirtualFormat (AudioStreamBasicDescription *pDesc)
 
bool SetPhysicalFormat (AudioStreamBasicDescription *pDesc)
 
bool GetAvailableVirtualFormats (StreamFormatList *pList)
 
bool GetAvailablePhysicalFormats (StreamFormatList *pList)
 

Static Public Member Functions

static UInt32 GetTerminalType (AudioStreamID id)
 
static bool GetAvailableVirtualFormats (AudioStreamID id, StreamFormatList *pList)
 
static bool GetAvailablePhysicalFormats (AudioStreamID id, StreamFormatList *pList)
 
static bool IsDigitalOutput (AudioStreamID id)
 
static bool GetStartingChannelInDevice (AudioStreamID id, UInt32 &startingChannel)
 

Static Protected Member Functions

static OSStatus HardwareStreamListener (AudioObjectID inObjectID, UInt32 inNumberAddresses, const AudioObjectPropertyAddress inAddresses[], void *inClientData)
 

Protected Attributes

CEvent m_virtual_format_event
 
CEvent m_physical_format_event
 
AudioStreamID m_StreamId = 0
 
AudioStreamBasicDescription m_OriginalVirtualFormat
 
AudioStreamBasicDescription m_OriginalPhysicalFormat
 

Constructor & Destructor Documentation

◆ CCoreAudioStream()

CCoreAudioStream::CCoreAudioStream ( )

◆ ~CCoreAudioStream()

CCoreAudioStream::~CCoreAudioStream ( )
virtual

Member Function Documentation

◆ Close()

void CCoreAudioStream::Close ( bool restore = true)
Todo
Should it even be possible to change both the physical and virtual formats, since the devices do it themselves?

◆ GetAvailablePhysicalFormats() [1/2]

bool CCoreAudioStream::GetAvailablePhysicalFormats ( AudioStreamID id,
StreamFormatList * pList )
static

◆ GetAvailablePhysicalFormats() [2/2]

bool CCoreAudioStream::GetAvailablePhysicalFormats ( StreamFormatList * pList)

◆ GetAvailableVirtualFormats() [1/2]

bool CCoreAudioStream::GetAvailableVirtualFormats ( AudioStreamID id,
StreamFormatList * pList )
static

◆ GetAvailableVirtualFormats() [2/2]

bool CCoreAudioStream::GetAvailableVirtualFormats ( StreamFormatList * pList)

◆ GetDirection()

UInt32 CCoreAudioStream::GetDirection ( )

◆ GetId()

AudioStreamID CCoreAudioStream::GetId ( ) const
inline

◆ GetNumLatencyFrames()

UInt32 CCoreAudioStream::GetNumLatencyFrames ( )

◆ GetPhysicalFormat()

bool CCoreAudioStream::GetPhysicalFormat ( AudioStreamBasicDescription * pDesc)

◆ GetStartingChannelInDevice()

bool CCoreAudioStream::GetStartingChannelInDevice ( AudioStreamID id,
UInt32 & startingChannel )
static

◆ GetTerminalType()

UInt32 CCoreAudioStream::GetTerminalType ( AudioStreamID id)
static

◆ GetVirtualFormat()

bool CCoreAudioStream::GetVirtualFormat ( AudioStreamBasicDescription * pDesc)

◆ HardwareStreamListener()

OSStatus CCoreAudioStream::HardwareStreamListener ( AudioObjectID inObjectID,
UInt32 inNumberAddresses,
const AudioObjectPropertyAddress inAddresses[],
void * inClientData )
staticprotected

◆ IsDigitalOutput()

bool CCoreAudioStream::IsDigitalOutput ( AudioStreamID id)
static

◆ Open()

bool CCoreAudioStream::Open ( AudioStreamID streamId)

◆ SetPhysicalFormat()

bool CCoreAudioStream::SetPhysicalFormat ( AudioStreamBasicDescription * pDesc)

◆ SetVirtualFormat()

bool CCoreAudioStream::SetVirtualFormat ( AudioStreamBasicDescription * pDesc)

Member Data Documentation

◆ m_OriginalPhysicalFormat

AudioStreamBasicDescription CCoreAudioStream::m_OriginalPhysicalFormat
protected

◆ m_OriginalVirtualFormat

AudioStreamBasicDescription CCoreAudioStream::m_OriginalVirtualFormat
protected

◆ m_physical_format_event

CEvent CCoreAudioStream::m_physical_format_event
protected

◆ m_StreamId

AudioStreamID CCoreAudioStream::m_StreamId = 0
protected

◆ m_virtual_format_event

CEvent CCoreAudioStream::m_virtual_format_event
protected

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