File tree Expand file tree Collapse file tree 2 files changed +92622
-2
lines changed Expand file tree Collapse file tree 2 files changed +92622
-2
lines changed Original file line number Diff line number Diff line change @@ -230,15 +230,14 @@ class AudioFFTBase : public AudioStream {
230
230
cfg.window_function_ifft ->begin (cfg.length );
231
231
}
232
232
233
- int step_size = cfg.stride > 0 ? cfg.stride : cfg.length ;
234
233
bool is_valid_rxtx = false ;
235
234
if (cfg.rxtx_mode == TX_MODE || cfg.rxtx_mode == RXTX_MODE) {
236
235
// holds last N bytes that need to be reprocessed
237
236
stride_buffer.resize ((cfg.length ) * bytesPerSample ());
238
237
is_valid_rxtx = true ;
239
238
}
240
239
if (cfg.rxtx_mode == RX_MODE || cfg.rxtx_mode == RXTX_MODE) {
241
- rfft_data.resize (cfg.channels * bytesPerSample () * step_size );
240
+ rfft_data.resize (cfg.channels * bytesPerSample () * cfg. stride );
242
241
rfft_add.resize (cfg.length );
243
242
step_data.resize (cfg.stride );
244
243
is_valid_rxtx = true ;
You can’t perform that action at this time.
0 commit comments