From 58b24d6ac9bc4022e2c6b91d86ff6fd3774a539d Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 12 Dec 2020 11:49:34 +1000 Subject: [PATCH] Qt: Fix volume controls updating incorrect volume --- src/duckstation-qt/audiosettingswidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duckstation-qt/audiosettingswidget.cpp b/src/duckstation-qt/audiosettingswidget.cpp index c958dda92..819ea2f50 100644 --- a/src/duckstation-qt/audiosettingswidget.cpp +++ b/src/duckstation-qt/audiosettingswidget.cpp @@ -94,7 +94,7 @@ void AudioSettingsWidget::updateVolumeLabel() void AudioSettingsWidget::onOutputVolumeChanged(int new_value) { m_host_interface->SetIntSettingValue("Audio", "OutputVolume", new_value); - if (!m_ui.muted->isChecked()) + if (!m_ui.muted->isChecked() && !QtHostInterface::GetInstance()->IsFastForwardEnabled()) m_host_interface->setAudioOutputVolume(new_value, m_ui.fastForwardVolume->value()); updateVolumeLabel(); @@ -103,7 +103,7 @@ void AudioSettingsWidget::onOutputVolumeChanged(int new_value) void AudioSettingsWidget::onFastForwardVolumeChanged(int new_value) { m_host_interface->SetIntSettingValue("Audio", "FastForwardVolume", new_value); - if (!m_ui.muted->isChecked()) + if (!m_ui.muted->isChecked() && QtHostInterface::GetInstance()->IsFastForwardEnabled()) m_host_interface->setAudioOutputVolume(m_ui.volume->value(), new_value); updateVolumeLabel();