Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Dec 29, 2024
1 parent eddd190 commit f2ec10f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ linux-aarch64:

android-aarch64:
mkdir -p $(PREFIX)-$@
$(CMAKE) . -B $(PREFIX)-$@ $(CMAKEFLAGS) -DCMAKE_TOOLCHAIN_FILE=cmake/android-toolchain.cmake
$(CMAKE) . -B $(PREFIX)-$@ $(CMAKEFLAGS) -DCMAKE_TOOLCHAIN_FILE=cmake/aarch64-android-toolchain.cmake
$(MAKE) -C $(PREFIX)-$@

all:
Expand Down
4 changes: 2 additions & 2 deletions src/segments/fft.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ int fft_segment_inv(struct mixed_segment *segment){
double expected = 2.*M_PI*(double)step/(double)framesize;
long fifo_latency = framesize-step;
if (data->overlap == 0) data->overlap = fifo_latency;

// FIXME: this is broken.
mixed_buffer_request_write(&out, &out_samples, data->out);
for (i = 0; i < out_samples; i++){
out[i] = out_fifo[data->overlap-fifo_latency];
data->overlap++;
Expand Down Expand Up @@ -217,7 +218,6 @@ int fft_segment_inv(struct mixed_segment *segment){
}
}

mixed_buffer_request_write(&out, &out_samples, data->out);
mixed_buffer_finish_write(out_samples, data->out);
return 1;
}
Expand Down

0 comments on commit f2ec10f

Please sign in to comment.