push method

STFTFrames push(
  1. Float32List input
)

Pushes one input chunk and returns any complex STFT frames produced.

Implementation

STFTFrames push(Float32List input) {
  if (input.isEmpty) return STFTFrames.empty(bins);
  return _runInputComplexOp(
    input,
    framesCap: maxPushFrames(input.length),
    op: (inputPtr, outRe, outIm, framesCap) {
      return yl_stft_push_r2c(
        res.handle,
        inputPtr,
        input.length,
        outRe,
        outIm,
        framesCap,
      );
    },
  );
}