Adds comment about latency-push unwrap()

This commit is contained in:
Mitchell Hentges 2019-09-27 10:18:23 -07:00
parent 624d1f8ce6
commit 1676bf20b6
No known key found for this signature in database
GPG Key ID: AB58E709BE0F037A
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}