Warn when there's a Rodio failure accessing a default device formats.

This commit is contained in:
Will Stott 2019-03-17 15:30:32 +00:00
parent 5ceb4db9b8
commit 99703a268f

View file

@ -12,7 +12,7 @@ fn list_formats(ref device: &rodio::Device) {
let default_fmt = match device.default_output_format() { let default_fmt = match device.default_output_format() {
Ok(fmt) => cpal::SupportedFormat::from(fmt), Ok(fmt) => cpal::SupportedFormat::from(fmt),
Err(e) => { Err(e) => {
info!("Error getting default rodio::Sink format: {:?}", e); warn!("Error getting default rodio::Sink format: {:?}", e);
return; return;
}, },
}; };
@ -20,7 +20,7 @@ fn list_formats(ref device: &rodio::Device) {
let mut output_formats = match device.supported_output_formats() { let mut output_formats = match device.supported_output_formats() {
Ok(f) => f.peekable(), Ok(f) => f.peekable(),
Err(e) => { Err(e) => {
info!("Error getting supported rodio::Sink formats: {:?}", e); warn!("Error getting supported rodio::Sink formats: {:?}", e);
return; return;
}, },
}; };