From 67b3b3ec50be6695998d762b90f37b222de0f0b8 Mon Sep 17 00:00:00 2001 From: Kyle Simpson Date: Mon, 28 Aug 2023 22:55:25 +0100 Subject: [PATCH] Chore: Update Rubato -> 0.14.1 --- Cargo.toml | 2 +- src/driver/tasks/mixer/mix_logic.rs | 2 +- src/input/adapters/cached/util.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d2afceb..1fe9247 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ pin-project = "1" rand = { optional = true, version = "0.8" } reqwest = { default-features = false, features = ["stream"], optional = true, version = "0.11" } ringbuf = { optional = true, version = "0.3" } -rubato = { optional = true, version = "0.12" } +rubato = { optional = true, version = "0.14.1" } rusty_pool = { optional = true, version = "0.7" } serde = { version = "1", features = ["derive"] } serde-aux = { optional = true, version = "4"} diff --git a/src/driver/tasks/mixer/mix_logic.rs b/src/driver/tasks/mixer/mix_logic.rs index 8abdc50..472669c 100644 --- a/src/driver/tasks/mixer/mix_logic.rs +++ b/src/driver/tasks/mixer/mix_logic.rs @@ -172,7 +172,7 @@ pub fn mix_symph_indiv( chan_c, ) .expect("Failed to create resampler."); - let out_buf = resampler.output_buffer_allocate(); + let out_buf = resampler.output_buffer_allocate(false); (chan_c, resampler, out_buf) }); diff --git a/src/input/adapters/cached/util.rs b/src/input/adapters/cached/util.rs index 53fde40..f0cc335 100644 --- a/src/input/adapters/cached/util.rs +++ b/src/input/adapters/cached/util.rs @@ -88,7 +88,7 @@ impl ToAudioBytes { ) .expect("Failed to create resampler."); - let resampled_data = resampler.output_buffer_allocate(); + let resampled_data = resampler.output_buffer_allocate(false); ResampleState { resampled_data,