From 1676bf20b61fccb994ad487416e16cded48ffe1c Mon Sep 17 00:00:00 2001 From: Mitchell Hentges Date: Fri, 27 Sep 2019 10:18:23 -0700 Subject: [PATCH] Adds comment about latency-push unwrap() --- examples/feedback.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/feedback.rs b/examples/feedback.rs index a71e7ea..f77f26e 100644 --- a/examples/feedback.rs +++ b/examples/feedback.rs @@ -45,6 +45,8 @@ fn main() -> Result<(), failure::Error> { // Fill the samples with 0.0 equal to the length of the delay. for _ in 0..latency_samples { + // The ring buffer has twice as much space as necessary to add latency here, + // so this should never fail producer.push(0.0).unwrap(); }