process method
Processes a whole signal buffer and returns all complex STFT frames.
Implementation
STFTFrames process(Float32List signal) {
if (signal.isEmpty) {
reset();
return STFTFrames.empty(bins);
}
return _runInputComplexOp(
signal,
framesCap: maxProcessFrames(signal.length),
op: (inputPtr, outRe, outIm, framesCap) {
return yl_stft_process_r2c(
res.handle,
inputPtr,
signal.length,
outRe,
outIm,
framesCap,
);
},
);
}