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,