diff --git a/src/emu/audio.rs b/src/emu/audio.rs index 173bbb4..06ce98e 100644 --- a/src/emu/audio.rs +++ b/src/emu/audio.rs @@ -46,11 +46,11 @@ impl<'a> AudioProcessor<'a> { log::info!("Detected Queue empty! Audio stutter may occur"); } while self.audio_queue.size() > (AUDIO_BUFFER_SIZE / 2) as u32 { - ::std::thread::sleep(Duration::from_micros(1)) + std::thread::sleep(Duration::from_micros(1)) } self.ram.try_copy_block(audio_base_reg, fb)?; - //convert to u8 audio format (Bytepusher stores it as "i8") + //convert to u8 audio format (BytePusher stores it as "i8") fb.iter_mut().for_each(|item|{ *item ^= I8_SIGN_BYTE; }); diff --git a/src/emu/cpu.rs b/src/emu/cpu.rs index b643905..b445b8f 100644 --- a/src/emu/cpu.rs +++ b/src/emu/cpu.rs @@ -40,7 +40,6 @@ impl<'a> Cpu<'a> { log::trace!("Finished internal loop"); self.graphics_processor.draw()?; - // TODO send audio Ok(()) } diff --git a/src/main.rs b/src/main.rs index 3a35a4e..4f7f125 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,7 +76,7 @@ fn main() -> EmulatorResult<()> { // 60fps - small offset to consider for cpu cycle time - ::std::thread::sleep(Duration::new(0, 1_000_000_000u32 / 60 - 2000_000)); + std::thread::sleep(Duration::new(0, 1_000_000_000u32 / 60 - 2000_000)); } Ok(())