Skip to content

Commit

Permalink
Driver: Correct buffer instantiation for Rubato
Browse files Browse the repository at this point in the history
I had slightly misread the changes from 0.12->0.14, so buffers were
not correctly instantiated for resampling.
  • Loading branch information
FelixMcFelix committed Aug 29, 2023
1 parent f79f62c commit efe2a0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/driver/tasks/mixer/mix_logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
Expand Down
2 changes: 1 addition & 1 deletion src/input/adapters/cached/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit efe2a0b

Please sign in to comment.