#include <audiooutputsettings.h>
Public Member Functions | |
| AudioOutputSettings (bool invalid=false) | |
| ~AudioOutputSettings () | |
| AudioOutputSettings & | operator= (const AudioOutputSettings &) |
| AudioOutputSettings * | GetCleaned (bool newcopy=false) |
| Returns capabilities supported by the audio device amended to take into account the digital audio options (AC3 and DTS) Warning: do not call it twice in a row, will lead to invalid settings. | |
| AudioOutputSettings * | GetUsers (bool newcopy=false) |
| Returns capabilities supported by the audio device amended to take into account the digital audio options (AC3 and DTS) as well as the user settings If newcopy = false, assume GetCleaned was called before hand. | |
| int | GetNextRate () |
| void | AddSupportedRate (int rate) |
| bool | IsSupportedRate (int rate) |
| int | NearestSupportedRate (int rate) |
| int | BestSupportedRate () |
| AudioFormat | GetNextFormat () |
| void | AddSupportedFormat (AudioFormat format) |
| bool | IsSupportedFormat (AudioFormat format) |
| AudioFormat | BestSupportedFormat () |
| void | AddSupportedChannels (int channels) |
| bool | IsSupportedChannels (int channels) |
| int | BestSupportedChannels () |
| void | setPassthrough (int val) |
| int | canPassthrough () |
| bool | canFeature (DigitalFeature arg) |
| return DigitalFeature mask. | |
| bool | canFeature (unsigned int arg) |
| bool | canAC3 () |
| return true if device can or may support AC3 (deprecated, see canFeature()) | |
| bool | canDTS () |
| return true if device can or may support DTS (deprecated, see canFeature()) | |
| bool | canLPCM () |
| return true if device supports multichannels PCM (deprecated, see canFeature()) | |
| bool | IsInvalid () |
| return true if class instance is marked invalid. | |
| void | setFeature (DigitalFeature arg) |
set the provided digital feature possible values are:
| |
| void | setFeature (unsigned int arg) |
| void | setFeature (bool val, DigitalFeature arg) |
| clear or set digital feature internal mask | |
| void | SetBestSupportedChannels (int channels) |
| Force set the greatest number of channels supported by the audio device. | |
| int | GetMaxHDRate () |
| return the highest iec958 rate supported. | |
| QString | FeaturesToString (DigitalFeature arg) |
| Display in human readable form the digital features supported by the output device. | |
| QString | FeaturesToString (void) |
Static Public Member Functions | |
| static int | FormatToBits (AudioFormat format) |
| static const char * | FormatToString (AudioFormat format) |
| static int | SampleSize (AudioFormat format) |
| static QString | GetPassthroughParams (int codec, int codec_profile, int &samplerate, int &channels, bool canDTSHDMA) |
| Setup samplerate and number of channels for passthrough. | |
Private Member Functions | |
| void | SortSupportedChannels () |
Private Attributes | |
| int | m_passthrough |
| passthrough status -1 : no 0: unknown 1: yes | |
| unsigned int | m_features |
| bool | m_invalid |
| bool | m_has_eld |
| will be set to true if we were able to retrieve the device ELD (EDID like Data). | |
| vector< int > | m_sr |
| vector< int > | m_rates |
| vector< int > | m_channels |
| vector< AudioFormat > | m_sf |
| vector< AudioFormat > | m_formats |
| vector< int >::iterator | m_sr_it |
| vector< AudioFormat >::iterator | m_sf_it |
Definition at line 50 of file audiooutputsettings.h.
| AudioOutputSettings::AudioOutputSettings | ( | bool | invalid = false |
) |
Definition at line 23 of file audiooutputsettings.cpp.
| AudioOutputSettings::~AudioOutputSettings | ( | ) |
Definition at line 35 of file audiooutputsettings.cpp.
| AudioOutputSettings & AudioOutputSettings::operator= | ( | const AudioOutputSettings & | rhs | ) |
Definition at line 44 of file audiooutputsettings.cpp.
| AudioOutputSettings * AudioOutputSettings::GetCleaned | ( | bool | newcopy = false |
) |
Returns capabilities supported by the audio device amended to take into account the digital audio options (AC3 and DTS) Warning: do not call it twice in a row, will lead to invalid settings.
Definition at line 270 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::GetOutputSettingsCleaned(), and GetUsers().
| AudioOutputSettings * AudioOutputSettings::GetUsers | ( | bool | newcopy = false |
) |
Returns capabilities supported by the audio device amended to take into account the digital audio options (AC3 and DTS) as well as the user settings If newcopy = false, assume GetCleaned was called before hand.
Definition at line 322 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::GetOutputSettingsUsers().
| int AudioOutputSettings::GetNextRate | ( | ) |
Definition at line 63 of file audiooutputsettings.cpp.
Referenced by AudioOutputWin::GetOutputSettings(), AudioOutputOSS::GetOutputSettings(), AudioOutputNULL::GetOutputSettings(), AudioOutputDX::GetOutputSettings(), AudioOutputCA::GetOutputSettings(), and AudioOutputALSA::GetOutputSettings().
| void AudioOutputSettings::AddSupportedRate | ( | int | rate | ) |
Definition at line 74 of file audiooutputsettings.cpp.
Referenced by AudioOutputWin::GetOutputSettings(), AudioOutputOSS::GetOutputSettings(), AudioOutputNULL::GetOutputSettings(), AudioOutputJACK::GetOutputSettings(), AudioOutputDX::GetOutputSettings(), AudioOutputCA::GetOutputSettings(), AudioOutputALSA::GetOutputSettings(), and AudioOutputPulseAudio::SinkInfoCallback().
| bool AudioOutputSettings::IsSupportedRate | ( | int | rate | ) |
Definition at line 81 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::CanPassthrough(), and GetCleaned().
| int AudioOutputSettings::NearestSupportedRate | ( | int | rate | ) |
Definition at line 102 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::Reconfigure().
| int AudioOutputSettings::BestSupportedRate | ( | ) |
Definition at line 95 of file audiooutputsettings.cpp.
Referenced by AudioTestThread::AudioTestThread().
| AudioFormat AudioOutputSettings::GetNextFormat | ( | ) |
Definition at line 119 of file audiooutputsettings.cpp.
Referenced by AudioOutputPulseAudio::GetOutputSettings(), AudioOutputOSS::GetOutputSettings(), AudioOutputNULL::GetOutputSettings(), and AudioOutputALSA::GetOutputSettings().
| void AudioOutputSettings::AddSupportedFormat | ( | AudioFormat | format | ) |
Definition at line 130 of file audiooutputsettings.cpp.
Referenced by AudioOutputWin::GetOutputSettings(), AudioOutputPulseAudio::GetOutputSettings(), AudioOutputOSS::GetOutputSettings(), AudioOutputNULL::GetOutputSettings(), AudioOutputJACK::GetOutputSettings(), AudioOutputDX::GetOutputSettings(), AudioOutputCA::GetOutputSettings(), and AudioOutputALSA::GetOutputSettings().
| bool AudioOutputSettings::IsSupportedFormat | ( | AudioFormat | format | ) |
Definition at line 137 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::CanPassthrough(), and GetCleaned().
| AudioFormat AudioOutputSettings::BestSupportedFormat | ( | ) |
Definition at line 151 of file audiooutputsettings.cpp.
Referenced by AudioTestThread::AudioTestThread(), and AudioOutputBase::Reconfigure().
| int AudioOutputSettings::FormatToBits | ( | AudioFormat | format | ) | [static] |
Definition at line 158 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::AddData(), fromFloat32(), CoreAudioData::OpenAnalog(), AudioOutputWin::OpenDevice(), AudioOutputOSS::OpenDevice(), AudioOutputDX::OpenDevice(), ReorderSmpteToAlsa(), ReorderSmpteToCA(), AudioOutputBase::Status(), toFloat32(), and AudioInfo::toString().
| const char * AudioOutputSettings::FormatToString | ( | AudioFormat | format | ) | [static] |
Definition at line 173 of file audiooutputsettings.cpp.
Referenced by AddSupportedFormat(), and AudioOutputBase::Reconfigure().
| int AudioOutputSettings::SampleSize | ( | AudioFormat | format | ) | [static] |
Definition at line 187 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::AddData(), AudioOutputBase::CopyWithUpmix(), AudioOutputDigitalEncoder::Encode(), AudioOutputBase::GetAudioData(), avfDecoder::initialize(), AudioReencodeBuffer::Reconfigure(), AudioOutputBase::Reconfigure(), avfDecoder::run(), and AudioOutputBase::SetStretchFactorLocked().
| void AudioOutputSettings::AddSupportedChannels | ( | int | channels | ) |
Definition at line 202 of file audiooutputsettings.cpp.
Referenced by GetCleaned(), AudioOutputWin::GetOutputSettings(), AudioOutputOSS::GetOutputSettings(), AudioOutputNULL::GetOutputSettings(), AudioOutputJACK::GetOutputSettings(), AudioOutputDX::GetOutputSettings(), AudioOutputCA::GetOutputSettings(), AudioOutputALSA::GetOutputSettings(), and AudioOutputPulseAudio::SinkInfoCallback().
| bool AudioOutputSettings::IsSupportedChannels | ( | int | channels | ) |
Definition at line 209 of file audiooutputsettings.cpp.
Referenced by GetCleaned(), AudioOutputBase::Reconfigure(), and AudioConfigSettings::UpdateCapabilities().
| int AudioOutputSettings::BestSupportedChannels | ( | ) |
Definition at line 223 of file audiooutputsettings.cpp.
Referenced by AudioOutput::GetAudioDeviceConfig(), GetCleaned(), AudioPlayer::GetMaxChannels(), GetUsers(), AudioOutputBase::InitSettings(), and AudioConfigSettings::UpdateCapabilities().
| void AudioOutputSettings::setPassthrough | ( | int | val | ) | [inline] |
Definition at line 75 of file audiooutputsettings.h.
Referenced by AudioOutputWin::GetOutputSettings(), AudioOutputOSS::GetOutputSettings(), AudioOutputNULL::GetOutputSettings(), AudioOutputDX::GetOutputSettings(), AudioOutputCA::GetOutputSettings(), and AudioOutputALSA::GetOutputSettings().
| int AudioOutputSettings::canPassthrough | ( | ) | [inline] |
Definition at line 76 of file audiooutputsettings.h.
Referenced by AudioConfigSettings::AudioAdvanced(), and AudioOutput::GetAudioDeviceConfig().
| bool AudioOutputSettings::canFeature | ( | DigitalFeature | arg | ) | [inline] |
return DigitalFeature mask.
possible values are:
Definition at line 87 of file audiooutputsettings.h.
Referenced by AudioOutputBase::CanPassthrough(), GetMaxHDRate(), GetUsers(), AudioOutputBase::Reconfigure(), AudioOutputBase::SetupPassthrough(), TestDigitalFeature(), and AudioConfigSettings::UpdateCapabilities().
| bool AudioOutputSettings::canFeature | ( | unsigned int | arg | ) | [inline] |
Definition at line 89 of file audiooutputsettings.h.
| bool AudioOutputSettings::canAC3 | ( | ) | [inline] |
return true if device can or may support AC3 (deprecated, see canFeature())
Definition at line 96 of file audiooutputsettings.h.
Referenced by AudioOutput::GetAudioDeviceConfig().
| bool AudioOutputSettings::canDTS | ( | ) | [inline] |
return true if device can or may support DTS (deprecated, see canFeature())
Definition at line 101 of file audiooutputsettings.h.
Referenced by AudioOutput::GetAudioDeviceConfig().
| bool AudioOutputSettings::canLPCM | ( | ) | [inline] |
return true if device supports multichannels PCM (deprecated, see canFeature())
Definition at line 106 of file audiooutputsettings.h.
Referenced by AudioConfigSettings::AudioAdvanced(), and AudioOutput::GetAudioDeviceConfig().
| bool AudioOutputSettings::IsInvalid | ( | ) | [inline] |
return true if class instance is marked invalid.
if true, you can not assume any of the other method returned values are valid
Definition at line 112 of file audiooutputsettings.h.
Referenced by AudioConfigSettings::AudioConfigSettings(), AudioConfigSettings::AudioRescan(), AudioConfigSettings::CheckPassthrough(), and AudioOutput::GetAudioDeviceConfig().
| void AudioOutputSettings::setFeature | ( | DigitalFeature | arg | ) | [inline] |
set the provided digital feature possible values are:
Definition at line 124 of file audiooutputsettings.h.
Referenced by GetCleaned(), GetUsers(), and AudioConfigSettings::UpdateCapabilities().
| void AudioOutputSettings::setFeature | ( | unsigned int | arg | ) | [inline] |
Definition at line 125 of file audiooutputsettings.h.
| void AudioOutputSettings::setFeature | ( | bool | val, | |
| DigitalFeature | arg | |||
| ) |
clear or set digital feature internal mask
Definition at line 256 of file audiooutputsettings.cpp.
| void AudioOutputSettings::SetBestSupportedChannels | ( | int | channels | ) |
Force set the greatest number of channels supported by the audio device.
Definition at line 237 of file audiooutputsettings.cpp.
Referenced by GetUsers(), and AudioConfigSettings::UpdateCapabilities().
| int AudioOutputSettings::GetMaxHDRate | ( | ) |
return the highest iec958 rate supported.
return 0 if no HD rate are supported
Definition at line 379 of file audiooutputsettings.cpp.
Referenced by AudioPlayer::GetMaxHDRate(), and AudioOutputBase::SetupPassthrough().
| QString AudioOutputSettings::FeaturesToString | ( | DigitalFeature | arg | ) |
Display in human readable form the digital features supported by the output device.
Definition at line 395 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::Reconfigure().
| QString AudioOutputSettings::FeaturesToString | ( | void | ) | [inline] |
Definition at line 149 of file audiooutputsettings.h.
Referenced by FeaturesToString().
| QString AudioOutputSettings::GetPassthroughParams | ( | int | codec, | |
| int | codec_profile, | |||
| int & | samplerate, | |||
| int & | channels, | |||
| bool | canDTSHDMA | |||
| ) | [static] |
Setup samplerate and number of channels for passthrough.
Definition at line 427 of file audiooutputsettings.cpp.
Referenced by AudioOutputBase::SetupPassthrough().
| void AudioOutputSettings::SortSupportedChannels | ( | ) | [private] |
Definition at line 230 of file audiooutputsettings.cpp.
int AudioOutputSettings::m_passthrough [private] |
passthrough status -1 : no 0: unknown 1: yes
Definition at line 167 of file audiooutputsettings.h.
Referenced by GetCleaned(), and operator=().
unsigned int AudioOutputSettings::m_features [private] |
Definition at line 169 of file audiooutputsettings.h.
Referenced by operator=(), and setFeature().
bool AudioOutputSettings::m_invalid [private] |
Definition at line 171 of file audiooutputsettings.h.
Referenced by GetCleaned(), GetUsers(), and operator=().
bool AudioOutputSettings::m_has_eld [private] |
will be set to true if we were able to retrieve the device ELD (EDID like Data).
ELD contains information about the audio processing capabilities of the device connected to the audio card ELD is usually retrieve from EDID CEA-861-E extension.
Definition at line 178 of file audiooutputsettings.h.
Referenced by operator=().
vector<int> AudioOutputSettings::m_sr [private] |
Definition at line 180 of file audiooutputsettings.h.
Referenced by AudioOutputSettings(), GetNextRate(), operator=(), and ~AudioOutputSettings().
vector<int> AudioOutputSettings::m_rates [private] |
Definition at line 180 of file audiooutputsettings.h.
Referenced by AddSupportedRate(), BestSupportedRate(), IsSupportedRate(), NearestSupportedRate(), operator=(), and ~AudioOutputSettings().
vector<int> AudioOutputSettings::m_channels [private] |
Definition at line 180 of file audiooutputsettings.h.
Referenced by AddSupportedChannels(), BestSupportedChannels(), IsSupportedChannels(), operator=(), SetBestSupportedChannels(), SortSupportedChannels(), and ~AudioOutputSettings().
vector<AudioFormat> AudioOutputSettings::m_sf [private] |
Definition at line 181 of file audiooutputsettings.h.
Referenced by AudioOutputSettings(), GetNextFormat(), operator=(), and ~AudioOutputSettings().
vector<AudioFormat> AudioOutputSettings::m_formats [private] |
Definition at line 181 of file audiooutputsettings.h.
Referenced by AddSupportedFormat(), BestSupportedFormat(), IsSupportedFormat(), operator=(), and ~AudioOutputSettings().
vector<int>::iterator AudioOutputSettings::m_sr_it [private] |
Definition at line 182 of file audiooutputsettings.h.
Referenced by AudioOutputSettings(), GetNextRate(), and operator=().
vector<AudioFormat>::iterator AudioOutputSettings::m_sf_it [private] |
Definition at line 183 of file audiooutputsettings.h.
Referenced by AudioOutputSettings(), GetNextFormat(), and operator=().
1.6.3