DspState class

Represents the current state of the DSP Engine across the UI.

Constructors

DspState({required bool isRunning, required double rmsLevel, required List<double> fftData, required double mediaTime, required String subtitleText, required double masterGain})
Creates a complete snapshot of the DSP parameters.
const
DspState.initial()
Factory constructor providing the default baseline state.
factory

Properties

fftData List<double>
Array containing the current magnitude of 512 frequency bins.
final
hashCode int
The hash code for this object.
no setterinherited
isRunning bool
Whether the native engine is currently actively processing audio.
final
masterGain double
The current global audio multiplier.
final
mediaTime double
High-precision timeline clock driven by audio sample rate.
final
rmsLevel double
The current volume magnitude (Root Mean Square).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitleText String
The text string of the subtitle meant to be displayed at this exact frame.
final

Methods

copyWith({bool? isRunning, double? rmsLevel, List<double>? fftData, double? mediaTime, String? subtitleText, double? masterGain}) DspState
Creates a copy of the state with specific overridden parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited