From a74d9e4d1ac8cbcced692dab50215dbe4b327107 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 9 Oct 2023 14:48:14 +1100 Subject: [PATCH] buffer size sucked lol --- gb-emu/src/audio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb-emu/src/audio.rs b/gb-emu/src/audio.rs index c0b087c..2a05763 100644 --- a/gb-emu/src/audio.rs +++ b/gb-emu/src/audio.rs @@ -5,7 +5,7 @@ use cpal::{ use futures::executor; use gb_emu_lib::connect::{AudioOutput, DownsampleType}; -const BUFFERS_PER_FRAME: usize = 100; +const BUFFERS_PER_FRAME: usize = 5; const DOWNSAMPLE_TYPE: DownsampleType = DownsampleType::ZeroOrderHold; pub fn create_output(muted: bool) -> (AudioOutput, Stream) {