CommonHostInterface: Don't reset volume when fast forwarding

This commit is contained in:
Connor McLaughlin 2021-07-04 21:53:02 +10:00
parent 6e9ebfa5b5
commit 9756168940

View file

@ -926,7 +926,10 @@ void CommonHostInterface::UpdateSpeedLimiterState()
m_audio_stream->SetInputSampleRate(input_sample_rate); m_audio_stream->SetInputSampleRate(input_sample_rate);
m_audio_stream->SetWaitForBufferFill(!m_display_all_frames); m_audio_stream->SetWaitForBufferFill(!m_display_all_frames);
if (g_settings.audio_fast_forward_volume != g_settings.audio_output_volume)
m_audio_stream->SetOutputVolume(GetAudioOutputVolume()); m_audio_stream->SetOutputVolume(GetAudioOutputVolume());
m_audio_stream->SetSync(audio_sync_enabled); m_audio_stream->SetSync(audio_sync_enabled);
if (audio_sync_enabled) if (audio_sync_enabled)
m_audio_stream->EmptyBuffers(); m_audio_stream->EmptyBuffers();