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:
@@ -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)
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user