diff --git a/Cargo.lock b/Cargo.lock index fb2f391..d3023a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2765,9 +2765,9 @@ checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" [[package]] name = "rubato" -version = "0.15.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5d18b486e7d29a408ef3f825bc1327d8f87af091c987ca2f5b734625940e234" +checksum = "cd70209c27d5b08f5528bdc779ea3ffb418954e28987f9f9775c6eac41003f9c" dependencies = [ "num-complex", "num-integer", diff --git a/Cargo.toml b/Cargo.toml index 026b11c..9ae8b47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,4 +28,4 @@ tokio-stream = { version = "0.1.15", features = ["sync"], optional = true } webbrowser = { version = "0.8.13", optional = true } ansi_term = "0.12.1" cpal = { version = "0.15.3", optional = true } -rubato = { version = "0.15.0", optional = true } +rubato = { version = "0.12.0", optional = true } diff --git a/src/run_native.rs b/src/run_native.rs index d762526..73df86a 100644 --- a/src/run_native.rs +++ b/src/run_native.rs @@ -395,8 +395,8 @@ fn init_sound( None } else { let rs = rubato::FftFixedIn::new(44100, sample_rate, 128, 1, 2)?; - let input_buffers = rs.input_buffer_allocate(true); - let output_buffers = rs.output_buffer_allocate(true); + let input_buffers = rs.input_buffer_allocate(); + let output_buffers = rs.output_buffer_allocate(); Some(Resampler { resampler: rs, input_buffers,