Skip to content

Commit

Permalink
Use Frame::ZERO instead of Frame::default()
Browse files Browse the repository at this point in the history
  • Loading branch information
zeozeozeo committed Nov 30, 2023
1 parent e4cbaef commit 164caa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/record_mixer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn main() {
let start = Instant::now();

// make a buffer where we will store the samples
let mut buffer = [Frame::default(); 4096]; // 32 kib
let mut buffer = [Frame::ZERO; 4096]; // 32 kib

while !mixer.is_finished() {
mixer.fill_buffer(44100, &mut buffer);
Expand Down

0 comments on commit 164caa6

Please sign in to comment.