Rockbox.ChannelMode (rockbox_ex_ffi v0.6.1)

Copy Markdown View Source

Channel mixing modes for Rockbox.Player.set_channel_mode/2.

These mirror the C ABI enum:

AtomValueMeaning
:stereo0Normal stereo
:mono1Both channels mixed to mono
:custom2Custom stereo width (see set_stereo_width/2)
:mono_left3Left channel on both outputs
:mono_right4Right channel on both outputs
:karaoke5Subtract to cancel center-panned vocals
:swap6Swap left and right

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

Summary

Functions

Numeric code for a channel mode (atom or already an integer).

Types

t()

@type t() :: :stereo | :mono | :custom | :mono_left | :mono_right | :karaoke | :swap

Functions

to_int(mode)

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

Numeric code for a channel mode (atom or already an integer).