AudioDspProcessor class
Concrete DSP processor implementing band-pass filtering, noise floor calibration, noise gate, and envelope detection.
Pipeline: raw PCM → band-pass IIR → noise gate → RMS/envelope → emit frame.
- Implemented types
Constructors
- AudioDspProcessor({AudioDspSettings? settings})
Properties
- currentEnvelopeAttackMs → double
-
Most recent envelope attack time (ms)
no setteroverride
- currentNoiseFloorDb → double
-
Calibrated noise floor level in dB
no setteroverride
- currentRmsAmplitude → double
-
Most recent RMS amplitude (0.0-1.0)
no setteroverride
-
frameStream
→ Stream<
AudioDspFrame> -
Stream of processed analysis frames
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCalibrated → bool
-
Whether noise floor calibration has completed
no setteroverride
- isInitialized → bool
-
Whether the processor has been initialized
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → AudioDspSettings
-
Current DSP settings
no setteroverride
Methods
-
applySettings(
AudioDspSettings settings) → void -
Apply new DSP settings
override
-
dispose(
) → void -
Release resources
override
-
finishCalibration(
) → void -
End calibration and freeze the noise floor
override
-
initialize(
{int sampleRate = 44100}) → Future< bool> -
Initialize the DSP processor
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processChunk(
Int16List pcm16Data) → void -
Feed raw PCM16 audio data for processing.
Data should be mono, signed 16-bit integers.
override
-
reset(
) → void -
Reset all internal state (filters, calibration, envelope)
override
-
startCalibration(
) → void -
Begin noise floor calibration (records ambient for
settings.calibrationDurationSec)override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited