50 LOG(VB_GENERAL, LOG_ERR,
"Theme is missing critical theme elements.");
70 if (truehdSetting == 1)
74 if (dtshdSetting == 1)
81 "audio devices detected on your system. When "
82 "satisfied, you can test audio before moving "
83 "on. If you fail to configure audio, video "
84 "playback may fail as well.") );
90 "is capable of playing DTS.") );
92 "is capable of playing AC-3 (Dolby Digital).") );
94 "is capable of playing E-AC-3 (Dolby Digital Plus).") );
96 "is capable of playing TrueHD.") );
98 "is capable of playing DTS-HD.") );
102 "noise through each speaker.") );
104 "configuration step.") );
114 QString message = tr(
"Discovering audio devices...");
145 auto samename = [
current](
const auto & ao){
return ao.m_name ==
current; };
153 LOG(VB_GENERAL, LOG_ERR, QString(
"Audio device %1 isn't usable")
190 int max_speakers = 8;
191 int realmax_speakers = 8;
195 auto samename = [out](
const auto & ao){
return ao.m_name == out; };
199 settings = ao->m_settings;
219 if (max_speakers > 2 && !bLPCM)
221 if (max_speakers == 2 && bAC3)
243 if (cur_speakers > max_speakers)
245 LOG(VB_AUDIO, LOG_INFO, QString(
"Reset device %1").arg(out));
246 cur_speakers = max_speakers;
251 for (
int i = 1; i <= max_speakers; i++)
261 QObject::tr(
"Stereo"));
269 QObject::tr(
"5.1 Channel Audio"));
277 QObject::tr(
"7.1 Channel Audio"));
278 eightchan->SetData(8);
302 bool restore =
false;
327 this,
"videosetupwizard");
382 bool handled =
false;
411 QString msg = QObject::tr(
"Audio device is invalid or not useable.");
bool IsSupportedChannels(int channels)
int BestSupportedChannels()
bool canFeature(DigitalFeature arg) const
return DigitalFeature mask.
void SetBestSupportedChannels(int channels)
Force set the greatest number of channels supported by the audio device.
void setFeature(DigitalFeature arg)
set the provided digital feature possible values are:
bool IsInvalid() const
return true if class instance is marked invalid.
AudioOutputSettings m_settings
static ADCVect * GetOutputList(void)
static AudioDeviceConfig * GetAudioDeviceConfig(QString &name, const QString &desc, bool willsuspendpa=false)
AudioTestThread * m_testThread
AudioOutputSettings UpdateCapabilitiesAC3(void)
AudioOutputSettings UpdateCapabilities(bool restore=true, bool AC3=false)
MythUICheckBox * m_dtsCheck
void toggleSpeakers(void)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool Create(void) override
MythUIButton * m_testSpeakerButton
MythUICheckBox * m_eac3Check
MythUICheckBox * m_ac3Check
MythUIButtonList * m_speakerNumberButtonList
MythUICheckBox * m_dtshdCheck
~AudioSetupWizard() override
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
MythUIButtonList * m_audioDeviceButtonList
MythUICheckBox * m_truehdCheck
MythUIButton * m_nextButton
QVector< AudioOutput::AudioDeviceConfig > * m_outputlist
QString m_lastAudioDevice
MythScreenType * m_generalScreen
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
MythUIButton * m_prevButton
void start(QThread::Priority p=QThread::InheritPriority)
Tell MThread to start running the thread in the near future.
bool wait(std::chrono::milliseconds time=std::chrono::milliseconds::max())
Wait for the MThread to exit, with a maximum timeout.
void SaveBoolSetting(const QString &key, bool newValue)
void SaveSetting(const QString &key, int newValue)
QString GetSetting(const QString &key, const QString &defaultval="")
int GetNumSetting(const QString &key, int defaultval=0)
MythScreenStack * GetMainStack()
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
void LoadInBackground(const QString &message="")
void BuildFocusList(void)
MythUIType * GetFocusWidget(void) const
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
void SetCheckState(MythUIStateType::StateType state)
MythUIStateType::StateType GetCheckState() const
void SetHelpText(const QString &text)
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
MythConfirmationDialog * ShowOkPopup(const QString &message, bool showCancel)
Non-blocking version of MythPopupBox::showOkPopup()
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
QDateTime current(bool stripped)
Returns current Date and Time in UTC.