From 75578786e4ea1f0b3f02e2bf26cd59c977dbd0bb Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Sun, 19 Feb 2023 19:08:46 +1100 Subject: [PATCH] clean --- src/processor/memory/mmio/apu.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/processor/memory/mmio/apu.rs b/src/processor/memory/mmio/apu.rs index 53281f4..ba95fdb 100644 --- a/src/processor/memory/mmio/apu.rs +++ b/src/processor/memory/mmio/apu.rs @@ -105,16 +105,16 @@ impl Default for Apu { None }; - let config = config.config(); - let converter = Samplerate::new( ConverterType::SincBestQuality, CLOCK_SPEED as u32, - config.sample_rate.0, - 2, + config.sample_rate().0, + config.channels().into(), ) .unwrap(); + let config = config.config(); + Self { mem: [0x0; MEM_SIZE], apu_enable: true,