diff --git a/.vscode/settings.json b/.vscode/settings.json index 2d9e3ef..fa76483 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,7 @@ { "rust-analyzer.linkedProjects": [ "Cargo.toml", + "./desktop/Cargo.toml", + "./3ds/Cargo.toml" ] } \ No newline at end of file diff --git a/src/nes.rs b/src/nes.rs index 7d41712..4974e11 100644 --- a/src/nes.rs +++ b/src/nes.rs @@ -85,10 +85,6 @@ impl Nes { } self.cpu.bus.apu.fill(buffer); - - for i in remaining_samples_in_bufffer..buffer.len() { - buffer[i] = 0.0; - } } pub fn clear_audio_buffer(&mut self) {