rockbox/settings
Read and patch the global daemon settings (volume, EQ, crossfeed, …).
Use the update_* builders to construct a partial update — only the
fields you set are sent to the server:
let patch =
settings.patch()
|> settings.set_volume(-20)
|> settings.set_shuffle(True)
let assert Ok(_) = settings.save(client, patch)
Types
Values
pub fn get(
client: rockbox.Client,
) -> Result(types.UserSettings, error.Error)
Read every settings field.
pub fn save(
client: rockbox.Client,
patch: Patch,
) -> Result(Nil, error.Error)
Push the patch to the daemon.
pub fn set_compressor(
patch: Patch,
value: types.CompressorSettings,
) -> Patch
pub fn set_eq_bands(
patch: Patch,
value: List(types.EqBandSetting),
) -> Patch
pub fn set_replaygain(
patch: Patch,
value: types.ReplaygainSettings,
) -> Patch