Rockbox.EqPreset (rockbox_ex_ffi v0.6.1)

Copy Markdown View Source

Built-in equalizer presets for Rockbox.Player.set_eq_preset/2.

These mirror the C ABI EqPreset::ALL order:

AtomValue
:flat0
:acoustic1
:bass_boost2
:bass_reducer3
:classical4
:dance5
:deep6
:electronic7
:hip_hop8
:jazz9
:latin10
:loudness11
:lounge12
:piano13
:pop14
:rnb15
:rock16
:small_speakers17
:treble_boost18
:treble_reducer19
:vocal_boost20

to_int/1 accepts either the atom or the raw integer, so callers can pass whichever they prefer.

Summary

Functions

Numeric code for an EQ preset (atom or already an integer).

Types

t()

@type t() ::
  :flat
  | :acoustic
  | :bass_boost
  | :bass_reducer
  | :classical
  | :dance
  | :deep
  | :electronic
  | :hip_hop
  | :jazz
  | :latin
  | :loudness
  | :lounge
  | :piano
  | :pop
  | :rnb
  | :rock
  | :small_speakers
  | :treble_boost
  | :treble_reducer
  | :vocal_boost

Functions

to_int(preset)

@spec to_int(t() | 0..20) :: 0..20

Numeric code for an EQ preset (atom or already an integer).