silence warning
This commit is contained in:
parent
7681154072
commit
518c9835e8
1 changed files with 7 additions and 1 deletions
|
|
@ -112,7 +112,13 @@ where
|
|||
let _ = tx.send(out);
|
||||
},
|
||||
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
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue