From 544b5f9b7eb6fd7940d058adc249b8bc43d03378 Mon Sep 17 00:00:00 2001 From: Jyrki Alakuijala Date: Thu, 7 Mar 2024 21:49:22 +0100 Subject: [PATCH] trying to recover other modes --- speaker_experiments/identity_sliding_fft.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/speaker_experiments/identity_sliding_fft.cc b/speaker_experiments/identity_sliding_fft.cc index c6a3dc1..545bd69 100644 --- a/speaker_experiments/identity_sliding_fft.cc +++ b/speaker_experiments/identity_sliding_fft.cc @@ -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);