Skip to main content

Module settings

Module settings 

Source
Expand description

TRACES: UR-023, UR-027, UR-031, UR-032, UR-033 | DR-030, DR-034, DR-035, DR-036, DR-048, IR-020

Structs§

AudioSettings
Audio playback settings
LibrarySettings
Library browsing preferences.
VideoSettings
Video playback settings

Enums§

EqPreset
Built-in equalizer presets. A preset is a gain curve defined by the band layout above (a domain concept), not a mere label — the curve numbers live in Rust so the frontend never encodes the taxonomy.
StreamingQuality
A ceiling on how much bandwidth a video stream may consume.
VolumeLevel
Volume normalization levels matching Spotify’s presets

Constants§

EQ_BANDS
Centre frequencies (Hz) of the fixed 10-band ISO equalizer. The band count and layout are a property of the audio engine, not the UI — presets and the MPV filter are defined against these bands. See docs/architecture/05-platform-backends.md (“The equalizer, and where its vocabulary lives”).
EQ_GAIN_MAX
Maximum per-band gain in dB.
EQ_GAIN_MIN
Minimum per-band gain in dB.

Functions§

audio_settings_jni_payload
Serialise AudioSettings into the JSON payload handed to the Android player over JNI.
default_eq_bands 🔒
Flat 10-band curve — the default equalizer state.