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 *)
 
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 audiodevs
 
AudioOutput::ADCVect devices
 
QMutex slotlock
 
int m_maxspeakers {0}
 
QString m_lastAudioDevice
 

Static Private Attributes

static const char * MixerControlControls []
 

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 &)
 
void valueChanged (StandardSetting *)
 
void ShouldRedraw (StandardSetting *)
 
void settingsChanged (StandardSetting *selectedSetting=nullptr)
 
void ChangeSaved ()
 
void helpTextChanged (const QString &)
 
- Protected Member Functions inherited from StandardSetting
 StandardSetting (Storage *_storage=nullptr)
 
virtual ~StandardSetting ()
 
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 30 of file audiogeneralsettings.h.

Member Typedef Documentation

◆ ADCMap

Definition at line 38 of file audiogeneralsettings.h.

Constructor & Destructor Documentation

◆ AudioConfigSettings()

AudioConfigSettings::AudioConfigSettings ( )

Definition at line 107 of file audiogeneralsettings.cpp.

Member Function Documentation

◆ Load()

void AudioConfigSettings::Load ( void  )
overridevirtual

Reimplemented from StandardSetting.

Definition at line 222 of file audiogeneralsettings.cpp.

◆ AudioDeviceMap()

ADCMap& AudioConfigSettings::AudioDeviceMap ( void  )
inline

Definition at line 40 of file audiogeneralsettings.h.

Referenced by AudioDeviceComboBox::AudioDescriptionHelp().

◆ AudioDeviceVect()

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

Definition at line 41 of file audiogeneralsettings.h.

Referenced by AudioDeviceComboBox::AudioRescan().

◆ CheckConfiguration()

void AudioConfigSettings::CheckConfiguration ( void  )

Definition at line 189 of file audiogeneralsettings.cpp.

◆ UpdateVisibility

void AudioConfigSettings::UpdateVisibility ( StandardSetting )
privateslot

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

Referenced by AudioConfigSettings().

◆ AudioRescan

void AudioConfigSettings::AudioRescan ( )
privateslot

Definition at line 232 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings(), and Load().

◆ UpdateAudioTest

void AudioConfigSettings::UpdateAudioTest ( )
privateslot

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

Referenced by AudioConfigSettings().

◆ AudioUpmix()

HostCheckBoxSetting * AudioConfigSettings::AudioUpmix ( )
staticprivate

Definition at line 438 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AudioUpmixType()

HostComboBoxSetting * AudioConfigSettings::AudioUpmixType ( )
staticprivate

Definition at line 452 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ AC3PassThrough()

HostCheckBoxSetting * AudioConfigSettings::AC3PassThrough ( )
staticprivate

Definition at line 468 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ DTSPassThrough()

HostCheckBoxSetting * AudioConfigSettings::DTSPassThrough ( )
staticprivate

Definition at line 482 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ EAC3PassThrough()

HostCheckBoxSetting * AudioConfigSettings::EAC3PassThrough ( )
staticprivate

Definition at line 496 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ TrueHDPassThrough()

HostCheckBoxSetting * AudioConfigSettings::TrueHDPassThrough ( )
staticprivate

Definition at line 509 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ DTSHDPassThrough()

HostCheckBoxSetting * AudioConfigSettings::DTSHDPassThrough ( )
staticprivate

Definition at line 522 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ MythControlsVolume()

HostCheckBoxSetting * AudioConfigSettings::MythControlsVolume ( )
staticprivate

Definition at line 1026 of file audiogeneralsettings.cpp.

Referenced by AudioConfigSettings().

◆ MixerDevice()

HostComboBoxSetting * AudioConfigSettings::MixerDevice ( )
staticprivate

Definition at line 1047 of file audiogeneralsettings.cpp.

Referenced by MythControlsVolume().

◆ MixerControl()

HostComboBoxSetting * AudioConfigSettings::MixerControl ( )
staticprivate

Definition at line 1088 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 535 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 85 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateVisibility().

◆ m_AudioUpmixType

HostComboBoxSetting* AudioConfigSettings::m_AudioUpmixType {nullptr}
private

Definition at line 86 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateVisibility().

◆ m_triggerDigital

GroupSetting* AudioConfigSettings::m_triggerDigital {nullptr}
private

Definition at line 89 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_AC3PassThrough

HostCheckBoxSetting* AudioConfigSettings::m_AC3PassThrough {nullptr}
private

Definition at line 90 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_DTSPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_DTSPassThrough {nullptr}
private

Definition at line 91 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_EAC3PassThrough

HostCheckBoxSetting* AudioConfigSettings::m_EAC3PassThrough {nullptr}
private

Definition at line 92 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_TrueHDPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_TrueHDPassThrough {nullptr}
private

Definition at line 93 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_DTSHDPassThrough

HostCheckBoxSetting* AudioConfigSettings::m_DTSHDPassThrough {nullptr}
private

Definition at line 94 of file audiogeneralsettings.h.

Referenced by AudioConfigSettings(), and UpdateCapabilities().

◆ m_MPCM

HostCheckBoxSetting* AudioConfigSettings::m_MPCM {nullptr}
private

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

Referenced by AudioConfigSettings(), and UpdateAudioTest().

◆ audiodevs

ADCMap AudioConfigSettings::audiodevs
private

◆ devices

AudioOutput::ADCVect AudioConfigSettings::devices
private

◆ slotlock

QMutex AudioConfigSettings::slotlock
private

Definition at line 104 of file audiogeneralsettings.h.

Referenced by AudioRescan(), and UpdateCapabilities().

◆ m_maxspeakers

int AudioConfigSettings::m_maxspeakers {0}
private

Definition at line 106 of file audiogeneralsettings.h.

Referenced by UpdateCapabilities().

◆ m_lastAudioDevice

QString AudioConfigSettings::m_lastAudioDevice
private

Definition at line 107 of file audiogeneralsettings.h.

Referenced by UpdateCapabilities().

◆ MixerControlControls

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

Definition at line 108 of file audiogeneralsettings.h.

Referenced by MixerControl().


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