mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Remove warning for Rodio on Alsa (fixed upstream) (#696)
This commit is contained in:
parent
4fc3accc78
commit
7226bfd55a
1 changed files with 4 additions and 9 deletions
|
@ -152,19 +152,14 @@ fn create_sink(
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn open(host: cpal::Host, device: Option<String>, format: AudioFormat) -> RodioSink {
|
pub fn open(host: cpal::Host, device: Option<String>, format: AudioFormat) -> RodioSink {
|
||||||
debug!(
|
info!(
|
||||||
"Using rodio sink with format {:?} and cpal host: {}",
|
"Using Rodio sink with format {:?} and cpal host: {}",
|
||||||
format,
|
format,
|
||||||
host.id().name()
|
host.id().name()
|
||||||
);
|
);
|
||||||
|
|
||||||
match format {
|
if format != AudioFormat::S16 && format != AudioFormat::F32 {
|
||||||
AudioFormat::F32 => {
|
unimplemented!("Rodio currently only supports F32 and S16 formats");
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
warn!("Rodio output to Alsa is known to cause garbled sound, consider using `--backend alsa`")
|
|
||||||
}
|
|
||||||
AudioFormat::S16 => (),
|
|
||||||
_ => unimplemented!("Rodio currently only supports F32 and S16 formats"),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let (sink, stream) = create_sink(&host, device).unwrap();
|
let (sink, stream) = create_sink(&host, device).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue