rockbox/sound

Volume control.

Values

pub fn adjust_volume(
  client: rockbox.Client,
  steps: Int,
) -> Result(Int, error.Error)

Adjust volume by a relative number of steps. Returns the new absolute volume.

pub fn get_volume(
  client: rockbox.Client,
) -> Result(types.VolumeInfo, error.Error)

Current volume with the firmware-reported min / max range.

pub fn volume_down(
  client: rockbox.Client,
) -> Result(Int, error.Error)

Drop the volume down by one step.

pub fn volume_up(
  client: rockbox.Client,
) -> Result(Int, error.Error)

Bump the volume up by one step.

Search Document