Driver: Correct buffer instantiation for Rubato

I had slightly misread the changes from 0.12->0.14, so buffers were
not correctly instantiated for resampling.
This commit is contained in:
Kyle Simpson
2023-08-29 10:35:43 +01:00
parent 67b3b3ec50
commit 935171df4f
2 changed files with 2 additions and 2 deletions

View File

@@ -172,7 +172,7 @@ pub fn mix_symph_indiv(
chan_c,
)
.expect("Failed to create resampler.");
let out_buf = resampler.output_buffer_allocate(false);
let out_buf = resampler.output_buffer_allocate(true);
(chan_c, resampler, out_buf)
});

View File

@@ -88,7 +88,7 @@ impl ToAudioBytes {
)
.expect("Failed to create resampler.");
let resampled_data = resampler.output_buffer_allocate(false);
let resampled_data = resampler.output_buffer_allocate(true);
ResampleState {
resampled_data,