This commit is contained in:
Alex Janka 2023-02-19 19:08:46 +11:00
parent 184e4c3341
commit 75578786e4

View file

@ -105,16 +105,16 @@ impl Default for Apu {
None None
}; };
let config = config.config();
let converter = Samplerate::new( let converter = Samplerate::new(
ConverterType::SincBestQuality, ConverterType::SincBestQuality,
CLOCK_SPEED as u32, CLOCK_SPEED as u32,
config.sample_rate.0, config.sample_rate().0,
2, config.channels().into(),
) )
.unwrap(); .unwrap();
let config = config.config();
Self { Self {
mem: [0x0; MEM_SIZE], mem: [0x0; MEM_SIZE],
apu_enable: true, apu_enable: true,