# `Rockbox.RepeatMode`
[🔗](https://github.com/tsirysndr/rockboxd/blob/master/bindings/elixir/lib/rockbox/repeat_mode.ex#L1)

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.

# `t`

```elixir
@type t() :: :off | :one | :all
```

# `from_int`

```elixir
@spec from_int(0..2) :: t()
```

Atom for a numeric repeat-mode code.

# `to_int`

```elixir
@spec to_int(t() | 0..2) :: 0..2
```

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
