Interface: VisualizerDecodeState
Defined in: packages/player/src/visualizer.ts:295
Per-subscription state the smoothing and the auto-gain need between frames.
Kept explicit (rather than hidden in a closure) so the decode step stays a
pure function of (capture, options, state) and is trivially testable.
Properties
gainDb
gainDb: number;
Defined in: packages/player/src/visualizer.ts:307
Current auto-gain offset in dB; 0 until the first non-silent frame.
peakHold
peakHold: Float32Array;
Defined in: packages/player/src/visualizer.ts:303
Frames each cap still hangs before it starts falling.
peaks
peaks: Float32Array;
Defined in: packages/player/src/visualizer.ts:299
Current peak-hold cap per band.
peakVelocity
peakVelocity: Float32Array;
Defined in: packages/player/src/visualizer.ts:301
Downward velocity of each cap, accumulated by gravity.
plan?
optional plan?: BandPlan;
Defined in: packages/player/src/visualizer.ts:309
Cached band geometry, rebuilt only when it actually changes.
power
power: Float32Array;
Defined in: packages/player/src/visualizer.ts:305
Scratch for per-band power, reused so decoding allocates nothing.
smoothed
smoothed: Float32Array;
Defined in: packages/player/src/visualizer.ts:297
Previous smoothed band values; grown/reset when bands changes.