summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-28 19:56:36 -0400
committerGitHub <noreply@github.com>2025-03-28 19:56:36 -0400
commitf00b7d39f0b2ff6cebbd78125bf7cdc888b9a6af (patch)
tree4b3b815e8f94d5ff6922dc0ddfa0e0a291c7aba6 /Source/Core
parent4c727a84c5112888caa7776b19d9add851554403 (diff)
parentefd993f382fbefa90e55bd31479f1cef93a3c525 (diff)
Merge pull request #13465 from TryTwo/PR_Bugfix
AudioPanel Bugfix
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/Settings/AudioPane.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/Settings/AudioPane.cpp b/Source/Core/DolphinQt/Settings/AudioPane.cpp
index 6ec374b4a2..c5856fddb9 100644
--- a/Source/Core/DolphinQt/Settings/AudioPane.cpp
+++ b/Source/Core/DolphinQt/Settings/AudioPane.cpp
@@ -161,8 +161,12 @@ void AudioPane::ConnectWidgets()
m_volume_indicator->setText(tr("%1%").arg(value));
AudioCommon::UpdateSoundStream(Core::System::GetInstance());
});
- connect(m_latency_slider, &QSlider::valueChanged, this,
- [this](int value) { m_latency_label->setText(tr("Latency: %1 ms").arg(value)); });
+
+ if (m_latency_control_supported)
+ {
+ connect(m_latency_slider, &QSlider::valueChanged, this,
+ [this](int value) { m_latency_label->setText(tr("Latency: %1 ms").arg(value)); });
+ }
}
void AudioPane::OnDspChanged()
@@ -242,9 +246,6 @@ void AudioPane::AddDescriptions()
static const char TR_AUDIO_BACKEND_DESCRIPTION[] =
QT_TR_NOOP("Selects which audio API to use internally.<br><br><dolphin_emphasis>If unsure, "
"select %1.</dolphin_emphasis>");
- static const char TR_WASAPI_DEVICE_DESCRIPTION[] =
- QT_TR_NOOP("Selects an output device to use.<br><br><dolphin_emphasis>If unsure, select "
- "Default Device.</dolphin_emphasis>");
static const char TR_LATENCY_SLIDER_DESCRIPTION[] = QT_TR_NOOP(
"Sets the audio latency in milliseconds. Higher values may reduce audio crackling. Certain "
"backends only.<br><br><dolphin_emphasis>If unsure, leave this at 20 ms.</dolphin_emphasis>");
@@ -279,9 +280,13 @@ void AudioPane::AddDescriptions()
m_dolby_quality_combo->SetDescription(tr(TR_DOLBY_OPTIONS_DESCRIPTION));
#ifdef _WIN32
+ static const char TR_WASAPI_DEVICE_DESCRIPTION[] =
+ QT_TR_NOOP("Selects an output device to use.<br><br><dolphin_emphasis>If unsure, select "
+ "Default Device.</dolphin_emphasis>");
m_wasapi_device_combo->SetTitle(tr("Output Device"));
m_wasapi_device_combo->SetDescription(tr(TR_WASAPI_DEVICE_DESCRIPTION));
#endif
+
m_volume_slider->SetTitle(tr("Volume"));
m_volume_slider->SetDescription(tr(TR_VOLUME_DESCRIPTION));