From 53dfaf0de2c8e001986b72d4d46506b4607b0891 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 14 Aug 2021 15:29:35 -0500 Subject: [PATCH] fix(apu): increase size of the audio buffer --- src/apu/gen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apu/gen.rs b/src/apu/gen.rs index a16acea..ebc82fe 100644 --- a/src/apu/gen.rs +++ b/src/apu/gen.rs @@ -3,7 +3,7 @@ use rtrb::{Consumer, Producer, PushError, RingBuffer}; pub(crate) const SAMPLE_RATE: u32 = 48000; // Hz const CHANNEL_COUNT: usize = 2; -const BUFFER_CAPACITY: usize = 512 * CHANNEL_COUNT; // # of samples * the # of channels +const BUFFER_CAPACITY: usize = 2048 * CHANNEL_COUNT; // # of samples * the # of channels pub struct AudioSPSC { inner: RingBuffer,