MythTV  master
Public Types | Public Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
AudioConfigSettings Class Reference

#include <mythfrontend/audiogeneralsettings.h>

Inheritance diagram for AudioConfigSettings:
[legend]
Collaboration diagram for AudioConfigSettings:
[legend]

Public Types

using ADCMap = QMap< QString, AudioOutput::AudioDeviceConfig >
 

Public Member Functions

 AudioConfigSettings ()
 
void Load () override
 
ADCMapAudioDeviceMap (void)
 
AudioOutput::ADCVectAudioDeviceVect (void)
 
void CheckConfiguration (void)
 
- Public Member Functions inherited from GroupSetting
 GroupSetting ()=default
 
void edit (MythScreenType *screen) override
 
void resultEdit (DialogCompletionEvent *) override
 
virtual void applyChange ()
 
void updateButton (MythUIButtonListItem *item) override
 This method is called whenever the UI need to reflect a change Reimplement this If you widget need a custom look. More...
 
virtual bool canDelete (void)
 
virtual void deleteEntry (void)
 
- Public Member Functions inherited from StandardSetting
virtual void setLabel (QString str)
 
QString getLabel (void) const
 
virtual void setHelpText (const QString &str)
 
QString getHelpText (void) const
 
virtual void setName (const QString &name)
 
QString getName (void) const
 
StandardSettingbyName (const QString &name)
 
bool isVisible (void) const
 
bool isEnabled () const
 
bool isReadOnly () const
 
bool haveChanged ()
 Return true if the setting have changed or any of its children. More...
 
void setChanged (bool changed)
 
StandardSettinggetParent () const
 
virtual QString getValue (void) const
 
void SetDBValue (const QString &val) override
 
QString GetDBValue (void) const override
 
MythUIButtonListItemcreateButton (MythUIButtonList *list)
 
virtual void addChild (StandardSetting *child)
 
virtual void removeChild (StandardSetting *child)
 
virtual QList< StandardSetting * > * getSubSettings ()
 
virtual bool haveSubSettings ()
 
virtual void clearSettings ()
 
void clearTargetedSettings (const QString &value)
 
virtual void Save (void)
 
virtual void Open (void)
 
virtual void Close (void)
 
StorageGetStorage (void) const
 
void addTargetedChild (const QString &value, StandardSetting *setting)
 
void addTargetedChildren (const QString &value, std::initializer_list< StandardSetting * > settings)
 
void removeTargetedChild (const QString &value, StandardSetting *child)
 
virtual bool keyPressEvent (QKeyEvent *event)
 
void MoveToThread (QThread *thread)
 
- Public Member Functions inherited from StorageUser
virtual ~StorageUser ()=default
 

Private Slots

void UpdateVisibility (StandardSetting *)
 
AudioOutputSettings UpdateCapabilities (bool restore=true, bool AC3=false)
 
void UpdateCapabilities (StandardSetting *)
 
AudioOutputSettings UpdateCapabilitiesAC3 (void)
 
void UpdateCapabilitiesAC3 (StandardSetting *)
 
void AudioRescan ()
 
void UpdateAudioTest ()
 

Private Member Functions

void setMPCMEnabled (bool flag)
 
AudioDeviceComboBoxOutputDevice ()
 
bool CheckPassthrough ()
 

Static Private Member Functions

static HostComboBoxSettingMaxAudioChannels ()
 
static HostCheckBoxSettingAudioUpmix ()
 
static HostComboBoxSettingAudioUpmixType ()
 
static HostCheckBoxSettingAC3PassThrough ()
 
static HostCheckBoxSettingDTSPassThrough ()
 
static HostCheckBoxSettingEAC3PassThrough ()
 
static HostCheckBoxSettingTrueHDPassThrough ()
 
static HostCheckBoxSettingDTSHDPassThrough ()
 
static HostCheckBoxSettingMythControlsVolume ()
 
static HostComboBoxSettingMixerDevice ()
 
static HostComboBoxSettingMixerControl ()
 
static HostSpinBoxSettingMixerVolume ()
 
static HostSpinBoxSettingPCMVolume ()
 
static HostCheckBoxSettingMPCM ()
 
static HostCheckBoxSettingSRCQualityOverride ()
 
static HostComboBoxSettingSRCQuality ()
 
static HostCheckBoxSettingAudio48kOverride ()
 
static HostCheckBoxSettingPassThroughOverride ()
 
static HostComboBoxSettingPassThroughOutputDevice ()
 
static HostCheckBoxSettingSPDIFRateOverride ()
 
static HostCheckBoxSettingHBRPassthrough ()
 

Private Attributes

AudioDeviceComboBoxm_outputDevice {nullptr}
 
HostComboBoxSettingm_maxAudioChannels {nullptr}
 
HostCheckBoxSettingm_audioUpmix {nullptr}
 
HostComboBoxSettingm_audioUpmixType {nullptr}
 
GroupSettingm_triggerDigital {nullptr}
 
HostCheckBoxSettingm_ac3PassThrough {nullptr}
 
HostCheckBoxSettingm_dtsPassThrough {nullptr}
 
HostCheckBoxSettingm_eac3PassThrough {nullptr}
 
HostCheckBoxSettingm_trueHDPassThrough {nullptr}
 
HostCheckBoxSettingm_dtsHDPassThrough {nullptr}
 
HostCheckBoxSettingm_mpcm {nullptr}
 
HostCheckBoxSettingm_passThroughOverride {nullptr}
 
HostComboBoxSettingm_passThroughDeviceOverride {nullptr}
 
AudioTestm_audioTest {nullptr}
 
ADCMap m_audioDevs
 
AudioOutput::ADCVect m_devices
 
QMutex m_slotLock
 
int m_maxSpeakers {0}
 
QString m_lastAudioDevice
 

Static Private Attributes

static const std::array< const char *, 2 > kMixerControlControls
 

Additional Inherited Members

- Public Slots inherited from StandardSetting
virtual void setEnabled (bool enabled)
 
virtual void setReadOnly (bool readonly)
 
void setVisible (bool visible)
 
virtual void setValue (const QString &newValue)
 
virtual void setValue (int newValue)
 
virtual void childChanged (StandardSetting *)
 
- Signals inherited from StandardSetting
void valueChanged (const QString &newValue)
 
void valueChanged (StandardSetting *setting)
 
void ShouldRedraw (StandardSetting *setting)
 
void settingsChanged (StandardSetting *selectedSetting=nullptr)
 
void ChangeSaved ()
 
void helpTextChanged (const QString &newValue)
 
- Protected Member Functions inherited from StandardSetting
 StandardSetting (Storage *_storage=nullptr)
 
 ~StandardSetting () override
 
void setParent (StandardSetting *parent)
 
- Protected Attributes inherited from StandardSetting
QString m_settingValue
 
bool m_enabled {true}
 
bool m_readonly {false}
 
QString m_label
 
QString m_helptext
 
QString m_name
 
bool m_visible {true}
 

Detailed Description

Definition at line 36 of file audiogeneralsettings.h.

Member Typedef Documentation

◆ ADCMap

Definition at line 44 of file audiogeneralsettings.h.

Constructor & Destructor Documentation

◆ AudioConfigSettings()

AudioConfigSettings::AudioConfigSettings ( )

Definition at line 113 of file audiogeneralsettings.cpp.

Member Function Documentation

◆ Load()

void AudioConfigSettings::Load ( )
overridevirtual

Reimplemented from StandardSetting.

Definition at line 228 of file audiogeneralsettings.cpp.

◆ AudioDeviceMap()

ADCMap& AudioConfigSettings::AudioDeviceMap ( void  )
inline

Definition at line 46 of file audiogeneralsettings.h.

Referenced by AudioDeviceComboBox::AudioDescriptionHelp().

◆ AudioDeviceVect()

AudioOutput::ADCVect& AudioConfigSettings::AudioDeviceVect ( void  )
inline

Definition at line 47 of file audiogeneralsettings.h.

Referenced by AudioDeviceComboBox::AudioRescan().

◆ CheckConfiguration()

void AudioConfigSettings::CheckConfiguration ( void  )

Definition at line 195 of file audiogeneralsettings.cpp.

◆ UpdateVisibility

void AudioConfigSettings::UpdateVisibility ( StandardSetting )
privateslot

Definition at line 267 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ UpdateCapabilities [1/2]

AudioOutputSettings AudioConfigSettings::UpdateCapabilities ( bool  restore = true,
bool  AC3 = false 
)
privateslot

◆ UpdateCapabilities [2/2]

void AudioConfigSettings::UpdateCapabilities ( StandardSetting )
privateslot

Definition at line 422 of file audiogeneralsettings.cpp.

◆ UpdateCapabilitiesAC3 [1/2]

AudioOutputSettings AudioConfigSettings::UpdateCapabilitiesAC3 ( void  )
privateslot

Definition at line 427 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings(), and UpdateCapabilitiesAC3().

◆ UpdateCapabilitiesAC3 [2/2]

void AudioConfigSettings::UpdateCapabilitiesAC3 ( StandardSetting )
privateslot

Definition at line 432 of file audiogeneralsettings.cpp.

◆ AudioRescan

void AudioConfigSettings::AudioRescan ( )
privateslot

Definition at line 238 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings(), and Load().

◆ UpdateAudioTest

void AudioConfigSettings::UpdateAudioTest ( )
privateslot

Definition at line 591 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ setMPCMEnabled()

void AudioConfigSettings::setMPCMEnabled ( bool  flag)
private

Definition at line 1321 of file audiogeneralsettings.cpp.

Referenced by UpdateCapabilities().

◆ OutputDevice()

AudioDeviceComboBox* AudioConfigSettings::OutputDevice ( )
private

◆ MaxAudioChannels()

HostComboBoxSetting * AudioConfigSettings::MaxAudioChannels ( )
staticprivate

Definition at line 437 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AudioUpmix()

HostCheckBoxSetting * AudioConfigSettings::AudioUpmix ( )
staticprivate

Definition at line 454 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AudioUpmixType()

HostComboBoxSetting * AudioConfigSettings::AudioUpmixType ( )
staticprivate

Definition at line 468 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AC3PassThrough()

HostCheckBoxSetting * AudioConfigSettings::AC3PassThrough ( )
staticprivate

Definition at line 484 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ DTSPassThrough()

HostCheckBoxSetting * AudioConfigSettings::DTSPassThrough ( )
staticprivate

Definition at line 498 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ EAC3PassThrough()

HostCheckBoxSetting * AudioConfigSettings::EAC3PassThrough ( )
staticprivate

Definition at line 512 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ TrueHDPassThrough()

HostCheckBoxSetting * AudioConfigSettings::TrueHDPassThrough ( )
staticprivate

Definition at line 525 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ DTSHDPassThrough()

HostCheckBoxSetting * AudioConfigSettings::DTSHDPassThrough ( )
staticprivate

Definition at line 538 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ MythControlsVolume()

HostCheckBoxSetting * AudioConfigSettings::MythControlsVolume ( )
staticprivate

Definition at line 1086 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ MixerDevice()

HostComboBoxSetting * AudioConfigSettings::MixerDevice ( )
staticprivate

Definition at line 1107 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ MixerControl()

HostComboBoxSetting * AudioConfigSettings::MixerControl ( )
staticprivate

Definition at line 1148 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ MixerVolume()

HostSpinBoxSetting * AudioConfigSettings::MixerVolume ( )
staticprivate

Definition at line 1162 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ PCMVolume()

HostSpinBoxSetting * AudioConfigSettings::PCMVolume ( )
staticprivate

Definition at line 1176 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ MPCM()

HostCheckBoxSetting * AudioConfigSettings::MPCM ( )
staticprivate

Definition at line 1189 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ SRCQualityOverride()

HostCheckBoxSetting * AudioConfigSettings::SRCQualityOverride ( )
staticprivate

Definition at line 1204 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ SRCQuality()

HostComboBoxSetting * AudioConfigSettings::SRCQuality ( )
staticprivate

Definition at line 1217 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ Audio48kOverride()

HostCheckBoxSetting * AudioConfigSettings::Audio48kOverride ( )
staticprivate

Definition at line 1238 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ PassThroughOverride()

HostCheckBoxSetting * AudioConfigSettings::PassThroughOverride ( )
staticprivate

Definition at line 1251 of file audiogeneralsettings.cpp.

◆ PassThroughOutputDevice()

HostComboBoxSetting * AudioConfigSettings::PassThroughOutputDevice ( )
staticprivate

Definition at line 1264 of file audiogeneralsettings.cpp.

◆ SPDIFRateOverride()

HostCheckBoxSetting * AudioConfigSettings::SPDIFRateOverride ( )
staticprivate

Definition at line 1289 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ HBRPassthrough()

HostCheckBoxSetting * AudioConfigSettings::HBRPassthrough ( )
staticprivate

Definition at line 1304 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ CheckPassthrough()

bool AudioConfigSettings::CheckPassthrough ( )
private

Definition at line 551 of file audiogeneralsettings.cpp.

Referenced by CheckConfiguration().

Member Data Documentation

◆ m_outputDevice

AudioDeviceComboBox* AudioConfigSettings::m_outputDevice {nullptr}
private

◆ m_maxAudioChannels

HostComboBoxSetting* AudioConfigSettings::m_maxAudioChannels {nullptr}
private

◆ m_audioUpmix

HostCheckBoxSetting* AudioConfigSettings::m_audioUpmix {nullptr}
private

Definition at line 93 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateVisibility().

◆ m_audioUpmixType

HostComboBoxSetting* AudioConfigSettings::m_audioUpmixType {nullptr}
private

Definition at line 94 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateVisibility().

◆ m_triggerDigital

GroupSetting* AudioConfigSettings::m_triggerDigital {nullptr}
private

Definition at line 97 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_ac3PassThrough

HostCheckBoxSetting* AudioConfigSettings::m_ac3PassThrough {nullptr}
private

Definition at line 98 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_dtsPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_dtsPassThrough {nullptr}
private

Definition at line 99 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_eac3PassThrough

HostCheckBoxSetting* AudioConfigSettings::m_eac3PassThrough {nullptr}
private

Definition at line 100 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_trueHDPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_trueHDPassThrough {nullptr}
private

Definition at line 101 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_dtsHDPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_dtsHDPassThrough {nullptr}
private

Definition at line 102 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_mpcm

HostCheckBoxSetting* AudioConfigSettings::m_mpcm {nullptr}
private

Definition at line 104 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and setMPCMEnabled().

◆ m_passThroughOverride

HostCheckBoxSetting* AudioConfigSettings::m_passThroughOverride {nullptr}
private

◆ m_passThroughDeviceOverride

HostComboBoxSetting* AudioConfigSettings::m_passThroughDeviceOverride {nullptr}
private

◆ m_audioTest

AudioTest* AudioConfigSettings::m_audioTest {nullptr}
private

Definition at line 108 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateAudioTest().

◆ m_audioDevs

ADCMap AudioConfigSettings::m_audioDevs
private

◆ m_devices

AudioOutput::ADCVect AudioConfigSettings::m_devices
private

Definition at line 111 of file audiogeneralsettings.h.

Referenced by AudioDeviceVect(), AudioRescan(), and CheckPassthrough().

◆ m_slotLock

QMutex AudioConfigSettings::m_slotLock
private

Definition at line 112 of file audiogeneralsettings.h.

Referenced by AudioRescan(), and UpdateCapabilities().

◆ m_maxSpeakers

int AudioConfigSettings::m_maxSpeakers {0}
private

Definition at line 114 of file audiogeneralsettings.h.

Referenced by UpdateCapabilities().

◆ m_lastAudioDevice

QString AudioConfigSettings::m_lastAudioDevice
private

Definition at line 115 of file audiogeneralsettings.h.

Referenced by UpdateCapabilities().

◆ kMixerControlControls

const std::array< const char *, 2 > AudioConfigSettings::kMixerControlControls
staticprivate
Initial value:
{QT_TR_NOOP("PCM"),
QT_TR_NOOP("Master")}

Definition at line 116 of file audiogeneralsettings.h.

Referenced by MixerControl().


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