change buffer size

This commit is contained in:
Alex Janka 2023-03-09 09:16:49 +11:00
parent 0f919c612c
commit d041475ced

View file

@ -63,7 +63,7 @@ impl AudioOutput {
sample_rate: f32,
wait_for_output: bool,
) -> (Self, AsyncHeapConsumer<[f32; 2]>) {
let rb_len = sample_rate as usize / (60 * 2);
let rb_len = sample_rate as usize / 60;
let rb = AsyncHeapRb::<[f32; 2]>::new(rb_len);
let (send_rb, rx) = rb.split();