[cln] Lint errors

This commit is contained in:
2024-02-25 10:01:47 +05:30
parent aff5103636
commit 6fefd600e1
3 changed files with 3 additions and 4 deletions

View File

@@ -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;
});

View File

@@ -40,7 +40,6 @@ impl<'a> Cpu<'a> {
log::trace!("Finished internal loop");
self.graphics_processor.draw()?;
// TODO send audio
Ok(())
}

View File

@@ -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(())