File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
shared-module/audiodelays Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ audioio_get_buffer_result_t audiodelays_pitch_shift_get_buffer(audiodelays_pitch
270
270
}
271
271
}
272
272
273
- if (self -> overlap_len ) {
273
+ if (overlap_size ) {
274
274
// Copy last sample from overlap and store in buffer
275
275
window_buffer [self -> window_index + window_size * buf_offset ] = overlap_buffer [self -> overlap_index + overlap_size * buf_offset ];
276
276
@@ -289,7 +289,7 @@ audioio_get_buffer_result_t audiodelays_pitch_shift_get_buffer(audiodelays_pitch
289
289
int32_t word = (int32_t )window_buffer [read_index + window_size * buf_offset ];
290
290
291
291
// Check if we're within the overlap range and mix buffer sample with overlap sample
292
- if (read_overlap_offset > 0 && read_overlap_offset <= overlap_size ) {
292
+ if (overlap_size && read_overlap_offset > 0 && read_overlap_offset <= overlap_size ) {
293
293
// Apply volume based on overlap position to buffer sample
294
294
word *= (int32_t )read_overlap_offset ;
295
295
You can’t perform that action at this time.
0 commit comments