Skip to content

Commit

Permalink
Revert zeroing of audio buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
nathsou committed Jul 31, 2023
1 parent 2b1f06a commit abbe203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"rust-analyzer.linkedProjects": [
"Cargo.toml",
"./desktop/Cargo.toml",
"./3ds/Cargo.toml"
]
}
4 changes: 0 additions & 4 deletions src/nes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit abbe203

Please sign in to comment.