executeSpec method
Float32List
executeSpec(
- Float32List input, {
- SpecMode mode = SpecMode.power,
- double dbFloor = -120.0,
Computes a magnitude, power, or dB spectrum into the reusable spec buffer.
Example:
final power = plan.executeSpec(frame, mode: SpecMode.power);
Implementation
Float32List executeSpec(
Float32List input, {
SpecMode mode = SpecMode.power,
double dbFloor = -120.0,
}) {
final r = res;
_loadInput(input);
yl_fft_plan_execute_r2c_spec(r.plan, r.input, r.spec, mode.value, dbFloor);
spec.setAll(0, r.spec.asTypedList(bins));
return spec;
}