Fix buffer size in JACK Audio backend
@@ -53,7 +53,7 @@ impl Open for JackSink {
let ch_r = client.register_port("out_0", AudioOut::default()).unwrap();
let ch_l = client.register_port("out_1", AudioOut::default()).unwrap();
// buffer for samples from librespot (~10ms)
- let (tx, rx) = sync_channel::<f32>(NUM_CHANNELS as usize * 1024 * format.size());
+ let (tx, rx) = sync_channel::<f32>(NUM_CHANNELS as usize * 1024 * AudioFormat::F32.size());
let jack_data = JackData {
rec: rx,
port_l: ch_l,
