spectrum property

Stream<SpectrumSettings> spectrum
final

Reactive view of the current SpectrumSettings — the configuration of the FFT pipeline (size, bands, window, emit rate, smoothing, dB clip). Emits a fresh snapshot on every Player.setSpectrum / Player.updateSpectrum call so reactive UI can bind without polling Player.spectrumSettings (which remains as a synchronous accessor for callers that don't want a subscription).

Mirrors the bundle-stream pattern of replayGain / cache / audioEffectssetXstream.x of the matching *Settings type. Unlike those, this one lives entirely Dart-side: the stream is fed from the FFT pipeline's local cache, not from an mpv property observer (the underlying pcm-tap-frame property only supplies samples, not config).

Implementation

final Stream<SpectrumSettings> spectrum;