silence warning

This commit is contained in:
Matthew Deville 2025-09-04 11:47:20 +02:00
parent 7681154072
commit 518c9835e8

View file

@ -112,7 +112,13 @@ where
let _ = tx.send(out); let _ = tx.send(out);
}, },
move |err| { move |err| {
eprintln!("CPAL input stream error: {err}"); if let cpal::StreamError::BackendSpecific {
err: cpal::BackendSpecificError { ref description },
} = err
&& description != "`alsa::poll()` spuriously returned"
{
error!("CPAL stream error: {err}");
}
}, },
Some(std::time::Duration::from_millis(10)), // latency Some(std::time::Duration::from_millis(10)), // latency
) )