mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix buffer size in JACK Audio backend
This commit is contained in:
parent
a200b25916
commit
cc60dc11dc
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ impl Open for JackSink {
|
||||||
let ch_r = client.register_port("out_0", AudioOut::default()).unwrap();
|
let ch_r = client.register_port("out_0", AudioOut::default()).unwrap();
|
||||||
let ch_l = client.register_port("out_1", AudioOut::default()).unwrap();
|
let ch_l = client.register_port("out_1", AudioOut::default()).unwrap();
|
||||||
// buffer for samples from librespot (~10ms)
|
// 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 {
|
let jack_data = JackData {
|
||||||
rec: rx,
|
rec: rx,
|
||||||
port_l: ch_l,
|
port_l: ch_l,
|
||||||
|
|
Loading…
Reference in a new issue