From 7226bfd55ab72fb3d35a35f3bc38582975a8bec1 Mon Sep 17 00:00:00 2001 From: Roderick van Domburg Date: Thu, 15 Apr 2021 08:42:19 +0200 Subject: [PATCH] Remove warning for Rodio on Alsa (fixed upstream) (#696) --- playback/src/audio_backend/rodio.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/playback/src/audio_backend/rodio.rs b/playback/src/audio_backend/rodio.rs index 65436a32..ebbdd256 100644 --- a/playback/src/audio_backend/rodio.rs +++ b/playback/src/audio_backend/rodio.rs @@ -152,19 +152,14 @@ fn create_sink( } pub fn open(host: cpal::Host, device: Option, format: AudioFormat) -> RodioSink { - debug!( - "Using rodio sink with format {:?} and cpal host: {}", + info!( + "Using Rodio sink with format {:?} and cpal host: {}", format, host.id().name() ); - match format { - AudioFormat::F32 => { - #[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"), + if format != AudioFormat::S16 && format != AudioFormat::F32 { + unimplemented!("Rodio currently only supports F32 and S16 formats"); } let (sink, stream) = create_sink(&host, device).unwrap();