Skip to content

Commit

Permalink
Merge pull request #39 from jyrkialakuijala/main
Browse files Browse the repository at this point in the history
trying to recover other modes
  • Loading branch information
jyrkialakuijala authored Mar 8, 2024
2 parents f5fa1b9 + 544b5f9 commit f317b26
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions speaker_experiments/identity_sliding_fft.cc
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,14 @@ void Process(
history[histo_ix + c] = input[num_channels * i + c];
}
}
int64_t output_len =
rotbank.FilterAllSingleThreaded(history.data(), total_in, read, mode,
output.data(), output.size());
int64_t output_len = 0;
if (mode == IDENTITY) {
output_len = rotbank.FilterAllSingleThreaded(history.data(), total_in, read, mode,
output.data(), output.size());
} else {
output_len = rotbank.FilterAll(history.data(), total_in, read, mode,
output.data(), output.size());
}
output_stream.writef(output.data(), output_len);
err += SquareError(history.data(), output.data(), num_channels, total_out,
output_len);
Expand Down

0 comments on commit f317b26

Please sign in to comment.