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
};
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,