Function: parseEqualizerSettings()
function parseEqualizerSettings(raw: string | null | undefined): EqualizerRestoreResult;
Defined in: packages/player/src/equalizer-storage.ts:164
Read back what serializeEqualizerSettings wrote.
Parameters
| Parameter | Type | Description |
|---|---|---|
raw | string | null | undefined | The stored string, or null for "nothing stored" (which is what every getItem contract returns for a missing key). |
Returns
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.