MythTV  master
Public Member Functions | Public Attributes | List of all members
CoreAudioData Class Reference

This holds Core Audio member variables and low-level audio IO methods The name is now a misnomer, it should be CoreAudioPrivate, or CoreAudioMgr. More...

Collaboration diagram for CoreAudioData:
Collaboration graph
[legend]

Public Member Functions

 CoreAudioData (AudioOutputCA *parent)
 
 CoreAudioData (AudioOutputCA *parent, AudioDeviceID deviceID)
 
 CoreAudioData (AudioOutputCA *parent, QString deviceName)
 
AudioDeviceID GetDefaultOutputDevice ()
 
int GetTotalOutputChannels ()
 
QString * GetName ()
 
AudioDeviceID GetDeviceWithName (const QString &deviceName)
 
bool OpenDevice ()
 
int OpenAnalog ()
 
void CloseAnalog ()
 
bool OpenSPDIF ()
 
void CloseSPDIF ()
 
void SetAutoHogMode (bool enable)
 
bool GetAutoHogMode ()
 
pid_t GetHogStatus ()
 
bool SetHogStatus (bool hog)
 
bool SetMixingSupport (bool mix)
 
bool GetMixingSupport ()
 
bool FindAC3Stream ()
 
void ResetAudioDevices ()
 Reset any devices with an AC3 stream back to a Linear PCM so that they can become a default output device. More...
 
void ResetStream (AudioStreamID s)
 
int * RatesList (AudioDeviceID d)
 
boolChannelsList (AudioDeviceID d, bool passthru)
 
AudioStreamID * StreamsList (AudioDeviceID d)
 Get a list of all the streams on this device. More...
 
AudioStreamBasicDescription * FormatsList (AudioStreamID s)
 
int AudioStreamChangeFormat (AudioStreamID s, AudioStreamBasicDescription format)
 
void Debug (const QString &msg)
 
void Error (const QString &msg)
 
void Warn (const QString &msg)
 

Public Attributes

AudioOutputCAmCA {nullptr}
 
AudioUnit mOutputUnit {nullptr}
 
bool mDigitalInUse {false}
 
pid_t mHog {-1}
 
int mMixerRestore {-1}
 
AudioDeviceID mDeviceID {0}
 
AudioStreamID mStreamID
 
int mStreamIndex {-1}
 
UInt32 mBytesPerPacket {static_cast<UInt32>(-1)}
 
AudioStreamBasicDescription mFormatOrig
 
AudioStreamBasicDescription mFormatNew
 
bool mRevertFormat {false}
 
bool mIoProc {false}
 
bool mInitialized {false}
 
bool mStarted {false}
 
bool mWasDigital {false}
 

Detailed Description

This holds Core Audio member variables and low-level audio IO methods The name is now a misnomer, it should be CoreAudioPrivate, or CoreAudioMgr.

Definition at line 84 of file audiooutputca.cpp.

Constructor & Destructor Documentation

◆ CoreAudioData() [1/3]

CoreAudioData::CoreAudioData ( AudioOutputCA parent)
explicit

Definition at line 494 of file audiooutputca.cpp.

◆ CoreAudioData() [2/3]

CoreAudioData::CoreAudioData ( AudioOutputCA parent,
AudioDeviceID  deviceID 
)

Definition at line 504 of file audiooutputca.cpp.

◆ CoreAudioData() [3/3]

CoreAudioData::CoreAudioData ( AudioOutputCA parent,
QString  deviceName 
)

Definition at line 511 of file audiooutputca.cpp.

Member Function Documentation

◆ GetDefaultOutputDevice()

AudioDeviceID CoreAudioData::GetDefaultOutputDevice ( )

Definition at line 568 of file audiooutputca.cpp.

Referenced by CoreAudioData(), and OpenAnalog().

◆ GetTotalOutputChannels()

int CoreAudioData::GetTotalOutputChannels ( )

Definition at line 589 of file audiooutputca.cpp.

Referenced by AudioOutputCA::GetDevices(), and GetDeviceWithName().

◆ GetName()

QString * CoreAudioData::GetName ( )

Definition at line 620 of file audiooutputca.cpp.

Referenced by AudioOutputCA::GetDevices(), and GetDeviceWithName().

◆ GetDeviceWithName()

AudioDeviceID CoreAudioData::GetDeviceWithName ( const QString &  deviceName)

Definition at line 530 of file audiooutputca.cpp.

Referenced by CoreAudioData().

◆ OpenDevice()

bool CoreAudioData::OpenDevice ( )

◆ OpenAnalog()

int CoreAudioData::OpenAnalog ( )

Definition at line 1028 of file audiooutputca.cpp.

Referenced by AudioOutputCA::OpenDevice().

◆ CloseAnalog()

void CoreAudioData::CloseAnalog ( )

Definition at line 1348 of file audiooutputca.cpp.

Referenced by AudioOutputCA::CloseDevice(), and AudioOutputCA::OpenDevice().

◆ OpenSPDIF()

bool CoreAudioData::OpenSPDIF ( )

Definition at line 1379 of file audiooutputca.cpp.

Referenced by AudioOutputCA::OpenDevice().

◆ CloseSPDIF()

void CoreAudioData::CloseSPDIF ( )

Definition at line 1491 of file audiooutputca.cpp.

Referenced by AudioOutputCA::CloseDevice(), and AudioOutputCA::OpenDevice().

◆ SetAutoHogMode()

void CoreAudioData::SetAutoHogMode ( bool  enable)

Definition at line 662 of file audiooutputca.cpp.

Referenced by OpenSPDIF().

◆ GetAutoHogMode()

bool CoreAudioData::GetAutoHogMode ( )

Definition at line 647 of file audiooutputca.cpp.

Referenced by OpenSPDIF().

◆ GetHogStatus()

pid_t CoreAudioData::GetHogStatus ( )

Definition at line 674 of file audiooutputca.cpp.

◆ SetHogStatus()

bool CoreAudioData::SetHogStatus ( bool  hog)

Definition at line 694 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and OpenSPDIF().

◆ SetMixingSupport()

bool CoreAudioData::SetMixingSupport ( bool  mix)

Definition at line 743 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and OpenSPDIF().

◆ GetMixingSupport()

bool CoreAudioData::GetMixingSupport ( )

Definition at line 769 of file audiooutputca.cpp.

Referenced by SetMixingSupport().

◆ FindAC3Stream()

bool CoreAudioData::FindAC3Stream ( )

Definition at line 1555 of file audiooutputca.cpp.

Referenced by AudioOutputCA::GetOutputSettings().

◆ ResetAudioDevices()

void CoreAudioData::ResetAudioDevices ( )

Reset any devices with an AC3 stream back to a Linear PCM so that they can become a default output device.

Definition at line 1594 of file audiooutputca.cpp.

Referenced by CoreAudioData().

◆ ResetStream()

void CoreAudioData::ResetStream ( AudioStreamID  s)

Definition at line 1626 of file audiooutputca.cpp.

Referenced by ResetAudioDevices().

◆ RatesList()

int * CoreAudioData::RatesList ( AudioDeviceID  d)

Definition at line 892 of file audiooutputca.cpp.

Referenced by AudioOutputCA::GetOutputSettings().

◆ ChannelsList()

bool * CoreAudioData::ChannelsList ( AudioDeviceID  d,
bool  passthru 
)

Definition at line 971 of file audiooutputca.cpp.

Referenced by AudioOutputCA::GetOutputSettings().

◆ StreamsList()

AudioStreamID * CoreAudioData::StreamsList ( AudioDeviceID  d)

Get a list of all the streams on this device.

Definition at line 786 of file audiooutputca.cpp.

Referenced by ChannelsList(), FindAC3Stream(), OpenSPDIF(), and ResetAudioDevices().

◆ FormatsList()

AudioStreamBasicDescription * CoreAudioData::FormatsList ( AudioStreamID  s)

Definition at line 828 of file audiooutputca.cpp.

Referenced by ChannelsList(), FindAC3Stream(), OpenSPDIF(), and ResetStream().

◆ AudioStreamChangeFormat()

int CoreAudioData::AudioStreamChangeFormat ( AudioStreamID  s,
AudioStreamBasicDescription  format 
)

Definition at line 1536 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and OpenSPDIF().

◆ Debug()

void CoreAudioData::Debug ( const QString &  msg)
inline

◆ Error()

void CoreAudioData::Error ( const QString &  msg)
inline

◆ Warn()

void CoreAudioData::Warn ( const QString &  msg)
inline

Member Data Documentation

◆ mCA

AudioOutputCA* CoreAudioData::mCA {nullptr}

Definition at line 131 of file audiooutputca.cpp.

Referenced by OpenAnalog(), and OpenSPDIF().

◆ mOutputUnit

AudioUnit CoreAudioData::mOutputUnit {nullptr}

◆ mDigitalInUse

bool CoreAudioData::mDigitalInUse {false}

Definition at line 137 of file audiooutputca.cpp.

Referenced by AudioOutputCA::CloseDevice(), CloseSPDIF(), OpenAnalog(), and OpenSPDIF().

◆ mHog

pid_t CoreAudioData::mHog {-1}

Definition at line 138 of file audiooutputca.cpp.

Referenced by SetHogStatus().

◆ mMixerRestore

int CoreAudioData::mMixerRestore {-1}

Definition at line 139 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and SetMixingSupport().

◆ mDeviceID

AudioDeviceID CoreAudioData::mDeviceID {0}

◆ mStreamID

AudioStreamID CoreAudioData::mStreamID

Definition at line 141 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and OpenSPDIF().

◆ mStreamIndex

int CoreAudioData::mStreamIndex {-1}

Definition at line 142 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and OpenSPDIF().

◆ mBytesPerPacket

UInt32 CoreAudioData::mBytesPerPacket {static_cast<UInt32>(-1)}

Definition at line 143 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and OpenSPDIF().

◆ mFormatOrig

AudioStreamBasicDescription CoreAudioData::mFormatOrig

Definition at line 144 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and OpenSPDIF().

◆ mFormatNew

AudioStreamBasicDescription CoreAudioData::mFormatNew

Definition at line 145 of file audiooutputca.cpp.

Referenced by OpenSPDIF().

◆ mRevertFormat

bool CoreAudioData::mRevertFormat {false}

Definition at line 146 of file audiooutputca.cpp.

Referenced by CloseSPDIF(), and OpenSPDIF().

◆ mIoProc

bool CoreAudioData::mIoProc {false}

Definition at line 147 of file audiooutputca.cpp.

Referenced by CloseAnalog(), CloseSPDIF(), OpenAnalog(), and OpenSPDIF().

◆ mInitialized

bool CoreAudioData::mInitialized {false}

Definition at line 148 of file audiooutputca.cpp.

Referenced by CloseAnalog(), and OpenAnalog().

◆ mStarted

bool CoreAudioData::mStarted {false}

Definition at line 149 of file audiooutputca.cpp.

Referenced by CloseAnalog(), CloseSPDIF(), OpenAnalog(), and OpenSPDIF().

◆ mWasDigital

bool CoreAudioData::mWasDigital {false}

Definition at line 150 of file audiooutputca.cpp.

Referenced by CloseAnalog(), CloseSPDIF(), and AudioOutputCA::OpenDevice().


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