mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
CommonHostInterface: Always wait for audio buffer fill
Fixes underflows on booting, at the cost of enforcing the user-configured minimum latency.
This commit is contained in:
parent
313237747b
commit
921c5cdfbf
|
@ -936,7 +936,7 @@ void CommonHostInterface::UpdateSpeedLimiterState()
|
||||||
Log_InfoPrintf("Audio input sample rate: %u hz", input_sample_rate);
|
Log_InfoPrintf("Audio input sample rate: %u hz", input_sample_rate);
|
||||||
|
|
||||||
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(true);
|
||||||
|
|
||||||
if (g_settings.audio_fast_forward_volume != g_settings.audio_output_volume)
|
if (g_settings.audio_fast_forward_volume != g_settings.audio_output_volume)
|
||||||
m_audio_stream->SetOutputVolume(GetAudioOutputVolume());
|
m_audio_stream->SetOutputVolume(GetAudioOutputVolume());
|
||||||
|
|
Loading…
Reference in a new issue