From 610a6a14047ed734a0b42f1c50301bdd1dafa315 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Sat, 18 Jan 2020 04:35:00 +0100 Subject: [PATCH] Increases number of buffers when buffering --- rpcs3/Emu/Cell/Modules/cellAudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellAudio.h b/rpcs3/Emu/Cell/Modules/cellAudio.h index 4e72a3e632..01b82164c0 100644 --- a/rpcs3/Emu/Cell/Modules/cellAudio.h +++ b/rpcs3/Emu/Cell/Modules/cellAudio.h @@ -194,7 +194,7 @@ public: const u64 minimum_block_period = audio_block_period / 2; // the block period will not be dynamically lowered below this value (usecs) const u64 maximum_block_period = (6 * audio_block_period) / 5; // the block period will not be dynamically increased above this value (usecs) - const u32 desired_full_buffers = buffering_enabled ? static_cast(desired_buffer_duration / audio_block_period) + 1 : 2; + const u32 desired_full_buffers = buffering_enabled ? static_cast(desired_buffer_duration / audio_block_period) + 3 : 2; const u32 num_allocated_buffers = desired_full_buffers + EXTRA_AUDIO_BUFFERS; // number of ringbuffer buffers const f32 period_average_alpha = 0.02f; // alpha factor for the m_average_period rolling average