Commit 668c3782 authored by Max Kellermann's avatar Max Kellermann

output/pipewire: smaller ring buffer, 500ms should be enough

parent 1e0af2da
...@@ -363,9 +363,9 @@ PipeWireOutput::Open(AudioFormat &audio_format) ...@@ -363,9 +363,9 @@ PipeWireOutput::Open(AudioFormat &audio_format)
sample_format = audio_format.format; sample_format = audio_format.format;
interrupted = false; interrupted = false;
/* allocate a ring buffer of 1 second */ /* allocate a ring buffer of 0.5 seconds */
const std::size_t ring_buffer_size = const std::size_t ring_buffer_size =
frame_size * audio_format.sample_rate; frame_size * (audio_format.sample_rate / 2);
ring_buffer = new RingBuffer(ring_buffer_size); ring_buffer = new RingBuffer(ring_buffer_size);
const struct spa_pod *params[1]; const struct spa_pod *params[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment