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 <audiogeneralsettings.h>

Inheritance diagram for AudioConfigSettings:
Inheritance graph
[legend]
Collaboration diagram for AudioConfigSettings:
Collaboration graph
[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 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)
 
AudioOutputSettings UpdateCapabilitiesAC3 (void)
 
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 char * kMixerControlControls []
 

Additional Inherited Members

- Public Slots inherited from StandardSetting
virtual void setEnabled (bool enabled)
 
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}
 
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 109 of file audiogeneralsettings.cpp.

Member Function Documentation

◆ Load()

void AudioConfigSettings::Load ( void  )
overridevirtual

Reimplemented from StandardSetting.

Definition at line 224 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 191 of file audiogeneralsettings.cpp.

◆ UpdateVisibility

void AudioConfigSettings::UpdateVisibility ( StandardSetting )
privateslot

Definition at line 263 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ UpdateCapabilities

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

◆ UpdateCapabilitiesAC3

AudioOutputSettings AudioConfigSettings::UpdateCapabilitiesAC3 ( void  )
privateslot

Definition at line 418 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AudioRescan

void AudioConfigSettings::AudioRescan ( )
privateslot

Definition at line 234 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings(), and Load().

◆ UpdateAudioTest

void AudioConfigSettings::UpdateAudioTest ( )
privateslot

Definition at line 577 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ setMPCMEnabled()

void AudioConfigSettings::setMPCMEnabled ( bool  flag)
private

Definition at line 1264 of file audiogeneralsettings.cpp.

Referenced by UpdateCapabilities().

◆ OutputDevice()

AudioDeviceComboBox* AudioConfigSettings::OutputDevice ( )
private

◆ MaxAudioChannels()

HostComboBoxSetting * AudioConfigSettings::MaxAudioChannels ( )
staticprivate

Definition at line 424 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AudioUpmix()

HostCheckBoxSetting * AudioConfigSettings::AudioUpmix ( )
staticprivate

Definition at line 441 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AudioUpmixType()

HostComboBoxSetting * AudioConfigSettings::AudioUpmixType ( )
staticprivate

Definition at line 455 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AC3PassThrough()

HostCheckBoxSetting * AudioConfigSettings::AC3PassThrough ( )
staticprivate

Definition at line 471 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ DTSPassThrough()

HostCheckBoxSetting * AudioConfigSettings::DTSPassThrough ( )
staticprivate

Definition at line 485 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ EAC3PassThrough()

HostCheckBoxSetting * AudioConfigSettings::EAC3PassThrough ( )
staticprivate

Definition at line 499 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ TrueHDPassThrough()

HostCheckBoxSetting * AudioConfigSettings::TrueHDPassThrough ( )
staticprivate

Definition at line 512 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ DTSHDPassThrough()

HostCheckBoxSetting * AudioConfigSettings::DTSHDPassThrough ( )
staticprivate

Definition at line 525 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ MythControlsVolume()

HostCheckBoxSetting * AudioConfigSettings::MythControlsVolume ( )
staticprivate

Definition at line 1029 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ MixerDevice()

HostComboBoxSetting * AudioConfigSettings::MixerDevice ( )
staticprivate

Definition at line 1050 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ MixerControl()

HostComboBoxSetting * AudioConfigSettings::MixerControl ( )
staticprivate

Definition at line 1091 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ MixerVolume()

HostSpinBoxSetting * AudioConfigSettings::MixerVolume ( )
staticprivate

Definition at line 1105 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ PCMVolume()

HostSpinBoxSetting * AudioConfigSettings::PCMVolume ( )
staticprivate

Definition at line 1119 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ MPCM()

HostCheckBoxSetting * AudioConfigSettings::MPCM ( )
staticprivate

Definition at line 1132 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ SRCQualityOverride()

HostCheckBoxSetting * AudioConfigSettings::SRCQualityOverride ( )
staticprivate

Definition at line 1147 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ SRCQuality()

HostComboBoxSetting * AudioConfigSettings::SRCQuality ( )
staticprivate

Definition at line 1160 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ Audio48kOverride()

HostCheckBoxSetting * AudioConfigSettings::Audio48kOverride ( )
staticprivate

Definition at line 1181 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ PassThroughOverride()

HostCheckBoxSetting * AudioConfigSettings::PassThroughOverride ( )
staticprivate

Definition at line 1194 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ PassThroughOutputDevice()

HostComboBoxSetting * AudioConfigSettings::PassThroughOutputDevice ( )
staticprivate

Definition at line 1207 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ SPDIFRateOverride()

HostCheckBoxSetting * AudioConfigSettings::SPDIFRateOverride ( )
staticprivate

Definition at line 1232 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ HBRPassthrough()

HostCheckBoxSetting * AudioConfigSettings::HBRPassthrough ( )
staticprivate

Definition at line 1247 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ CheckPassthrough()

bool AudioConfigSettings::CheckPassthrough ( )
private

Definition at line 538 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 91 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateVisibility().

◆ m_audioUpmixType

HostComboBoxSetting* AudioConfigSettings::m_audioUpmixType {nullptr}
private

Definition at line 92 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateVisibility().

◆ m_triggerDigital

GroupSetting* AudioConfigSettings::m_triggerDigital {nullptr}
private

Definition at line 95 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_ac3PassThrough

HostCheckBoxSetting* AudioConfigSettings::m_ac3PassThrough {nullptr}
private

Definition at line 96 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_dtsPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_dtsPassThrough {nullptr}
private

Definition at line 97 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_eac3PassThrough

HostCheckBoxSetting* AudioConfigSettings::m_eac3PassThrough {nullptr}
private

Definition at line 98 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_trueHDPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_trueHDPassThrough {nullptr}
private

Definition at line 99 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_dtsHDPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_dtsHDPassThrough {nullptr}
private

Definition at line 100 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_mpcm

HostCheckBoxSetting* AudioConfigSettings::m_mpcm {nullptr}
private

Definition at line 102 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 106 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 109 of file audiogeneralsettings.h.

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

◆ m_slotLock

QMutex AudioConfigSettings::m_slotLock
private

Definition at line 110 of file audiogeneralsettings.h.

Referenced by AudioRescan(), and UpdateCapabilities().

◆ m_maxSpeakers

int AudioConfigSettings::m_maxSpeakers {0}
private

Definition at line 112 of file audiogeneralsettings.h.

Referenced by UpdateCapabilities().

◆ m_lastAudioDevice

QString AudioConfigSettings::m_lastAudioDevice
private

Definition at line 113 of file audiogeneralsettings.h.

Referenced by UpdateCapabilities().

◆ kMixerControlControls

const char * AudioConfigSettings::kMixerControlControls
staticprivate
Initial value:
=
{QT_TR_NOOP("PCM"),
QT_TR_NOOP("Master")}

Definition at line 114 of file audiogeneralsettings.h.

Referenced by MixerControl().


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