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 {
230230 cfg.window_function_ifft ->begin (cfg.length );
231231 }
232232
233- int step_size = cfg.stride > 0 ? cfg.stride : cfg.length ;
234233 bool is_valid_rxtx = false ;
235234 if (cfg.rxtx_mode == TX_MODE || cfg.rxtx_mode == RXTX_MODE) {
236235 // holds last N bytes that need to be reprocessed
237236 stride_buffer.resize ((cfg.length ) * bytesPerSample ());
238237 is_valid_rxtx = true ;
239238 }
240239 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 );
242241 rfft_add.resize (cfg.length );
243242 step_data.resize (cfg.stride );
244243 is_valid_rxtx = true ;
You can’t perform that action at this time.
0 commit comments