1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-05 02:39:53 +02:00

Default to S16 output

This commit is contained in:
Roderick van Domburg 2021-03-16 20:22:00 +01:00
parent 309e26456e
commit 9dcaeee6d4
3 changed files with 4 additions and 8 deletions

View file

@ -42,14 +42,10 @@ impl ProcessHandler for JackData {
impl Open for JackSink {
fn open(client_name: Option<String>, format: AudioFormat) -> JackSink {
info!("Using JACK sink with format {:?}", format);
if format != AudioFormat::F32 {
panic!(
"JACK sink only supports 32-bit floating point output. Use `--format {:?}`",
AudioFormat::F32
);
warn!("JACK currently does not support {:?} output", format);
}
info!("Using JACK sink with format {:?}", AudioFormat::F32);
let client_name = client_name.unwrap_or("librespot".to_string());
let (client, _status) =