We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea6769 commit eab9727Copy full SHA for eab9727
src/queue.rs
@@ -239,7 +239,11 @@ impl SourcesQueueOutput {
239
let mut next = self.input.next_sounds.lock().unwrap();
240
241
if next.is_empty() {
242
- let silence = Box::new(Zero::new_samples(nz!(1), nz!(44100), THRESHOLD)) as Box<_>;
+ let silence = Box::new(Zero::new_samples(
243
+ SILENCE_CHANNELS,
244
+ SILENCE_SAMPLE_RATE,
245
+ THRESHOLD,
246
+ )) as Box<_>;
247
if self.input.keep_alive_if_empty.load(Ordering::Acquire) {
248
// Play a short silence in order to avoid spinlocking.
249
(silence, None)
0 commit comments