Skip to main content

Function: serializeEqualizerSettings()

function serializeEqualizerSettings(settings: EqualizerSettings): string;

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

Turn settings into the exact string parseEqualizerSettings reads back.

Pure, and separated from the hook precisely so the round-trip is testable without React, a device or a storage engine.

Parameters

ParameterTypeDescription
settingsEqualizerSettingsWhat to write.

Returns

string

A JSON record stamped with EQUALIZER_SCHEMA_VERSION.