From 164caa6b8cc2135b24bae0d5620384a555e30dc7 Mon Sep 17 00:00:00 2001 From: zeozeozeo <108888572+zeozeozeo@users.noreply.github.com> Date: Thu, 30 Nov 2023 15:11:53 +0500 Subject: [PATCH] Use `Frame::ZERO` instead of `Frame::default()` --- examples/record_mixer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/record_mixer.rs b/examples/record_mixer.rs index 1de72c0..448ee7d 100644 --- a/examples/record_mixer.rs +++ b/examples/record_mixer.rs @@ -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);