Skip to content

Commit ec428b7

Browse files
committed
Fix read index bug.
1 parent 39df7ca commit ec428b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/audiodelays/PitchShift.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ audioio_get_buffer_result_t audiodelays_pitch_shift_get_buffer(audiodelays_pitch
286286
uint32_t read_overlap_offset = read_index + window_size * (read_index < self->window_index) - self->window_index;
287287

288288
// Read sample from buffer
289-
int32_t word = (int32_t)window_buffer[self->read_index + window_size * buf_offset];
289+
int32_t word = (int32_t)window_buffer[read_index + window_size * buf_offset];
290290

291291
// Check if we're within the overlap range and mix buffer sample with overlap sample
292292
if (read_overlap_offset > 0 && read_overlap_offset <= overlap_size) {

0 commit comments

Comments
 (0)