Repeat modes for Rockbox.Player.set_repeat/2.
These mirror the C ABI enum:
| Atom | Value | Meaning |
|---|---|---|
:off | 0 | No repeat |
:one | 1 | Repeat the current track |
:all | 2 | Repeat the whole queue |
to_int/1 accepts either the atom or the raw integer, so callers can pass
whichever they prefer; from_int/1 maps a numeric code back to its atom.
Summary
Functions
Atom for a numeric repeat-mode code.
Numeric code for a repeat mode (atom or already an integer).