Skip to content

Commit eab9727

Browse files
committed
fixup! SourcesQueueOutput can peek metadata from next source
1 parent 9ea6769 commit eab9727

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/queue.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ impl SourcesQueueOutput {
239239
let mut next = self.input.next_sounds.lock().unwrap();
240240

241241
if next.is_empty() {
242-
let silence = Box::new(Zero::new_samples(nz!(1), nz!(44100), THRESHOLD)) as Box<_>;
242+
let silence = Box::new(Zero::new_samples(
243+
SILENCE_CHANNELS,
244+
SILENCE_SAMPLE_RATE,
245+
THRESHOLD,
246+
)) as Box<_>;
243247
if self.input.keep_alive_if_empty.load(Ordering::Acquire) {
244248
// Play a short silence in order to avoid spinlocking.
245249
(silence, None)

0 commit comments

Comments
 (0)