diff options
| author | MaranBr <maranbr@outlook.com> | 2025-11-07 01:42:57 +0100 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-11-07 01:42:57 +0100 |
| commit | 0510f0bdbc3017d33b98ca0887a8383f2ec5daea (patch) | |
| tree | 06b8c47a64a78183696d1d4732ffab6a51fdc897 /src/audio_core | |
| parent | 569dbfe8c04e5f852ef4db17f5f219fe2da27228 (diff) | |
[audio_core] Increase RingBuffer and SinkBuffer size a bit more (#2964)
This helps weaker CPUs maintain consistent audio playback while keeping latency low.
Complement to #2944.
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2964
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Co-authored-by: MaranBr <maranbr@outlook.com>
Co-committed-by: MaranBr <maranbr@outlook.com>
Diffstat (limited to 'src/audio_core')
| -rw-r--r-- | src/audio_core/sink/sink_stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/sink/sink_stream.h b/src/audio_core/sink/sink_stream.h index acb7537dda..083eb7bc27 100644 --- a/src/audio_core/sink/sink_stream.h +++ b/src/audio_core/sink/sink_stream.h @@ -238,9 +238,9 @@ protected: private: /// Ring buffer of the samples waiting to be played or consumed - Common::RingBuffer<s16, 0x10000> samples_buffer; + Common::RingBuffer<s16, 0x20000> samples_buffer; /// Audio buffers queued and waiting to play - Common::SPSCQueue<SinkBuffer, 0x10000> queue; + Common::SPSCQueue<SinkBuffer, 0x20000> queue; /// The currently-playing audio buffer SinkBuffer playing_buffer{}; /// The last played (or received) frame of audio, used when the callback underruns |
