Browse Source

[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>
pull/2961/head
MaranBr 2 months ago
committed by crueter
parent
commit
0510f0bdbc
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 4
      src/audio_core/sink/sink_stream.h

4
src/audio_core/sink/sink_stream.h

@ -238,9 +238,9 @@ protected:
private: private:
/// Ring buffer of the samples waiting to be played or consumed /// 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 /// Audio buffers queued and waiting to play
Common::SPSCQueue<SinkBuffer, 0x10000> queue;
Common::SPSCQueue<SinkBuffer, 0x20000> queue;
/// The currently-playing audio buffer /// The currently-playing audio buffer
SinkBuffer playing_buffer{}; SinkBuffer playing_buffer{};
/// The last played (or received) frame of audio, used when the callback underruns /// The last played (or received) frame of audio, used when the callback underruns

Loading…
Cancel
Save