Skip to main content

Function: parseEqualizerSettings()

function parseEqualizerSettings(raw: string | null | undefined): EqualizerRestoreResult;

Defined in: packages/player/src/equalizer-storage.ts:164

Read back what serializeEqualizerSettings wrote.

Parameters

ParameterTypeDescription
rawstring | null | undefinedThe stored string, or null for "nothing stored" (which is what every getItem contract returns for a missing key).

Returns

EqualizerRestoreResult

See EqualizerRestoreResult. Validation is deliberately strict about the curve — a wrong-length or non-finite gainsDb would be written straight into an ffmpeg filter — and forgiving about the preset bank: an individual bad preset is dropped, because losing one saved curve is a better outcome than refusing to restore the user's EQ at all.