Skip to content

Commit

Permalink
trying to recover other modes
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkialakuijala committed Mar 7, 2024
1 parent 237fa3e commit 544b5f9
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 544b5f9

Please sign in to comment.