Liking cljdoc? Tell your friends :D

rockbox.ffi.player

Queue-based player with native ReplayGain and Rockbox crossfade.

A player owns a live audio output device and a background engine thread — construct it only where an output device exists. A handle is an opaque MemorySegment; every function takes it as the first argument. Free it with free (or use with-player).

ReplayGain mode here uses the player values (rockbox.ffi.enums/replaygain-mode: :off :track :album) — distinct from the DSP encoding.

Queue-based player with native ReplayGain and Rockbox crossfade.

A player owns a live audio output device and a background engine thread —
construct it only where an output device exists. A handle is an opaque
MemorySegment; every function takes it as the first argument. Free it with
`free` (or use `with-player`).

ReplayGain `mode` here uses the *player* values (rockbox.ffi.enums/replaygain-mode:
:off :track :album) — distinct from the DSP encoding.
raw docstring

default-configclj

source

enqueueclj

(enqueue p path)
source

freeclj

(free p)

Free the native handle. Safe to call with nil.

Free the native handle. Safe to call with nil.
sourceraw docstring

new-playerclj

(new-player)
(new-player config)

Create a player. config overrides default-config (see the C ABI's rb_player_new_with_config). Throws if no output device is available.

Create a player. `config` overrides `default-config` (see the C ABI's
rb_player_new_with_config). Throws if no output device is available.
sourceraw docstring

nextclj

(next p)
source

pauseclj

(pause p)
source

playclj

(play p)
source

previousclj

(previous p)
source

sample-rateclj

(sample-rate p)
source

seek-msclj

(seek-ms p ms)
source

set-crossfadeclj

(set-crossfade p
               mode
               &
               {:keys [fade-out-delay-ms fade-out-duration-ms fade-in-delay-ms
                       fade-in-duration-ms mix-mode]
                :or {fade-out-delay-ms 0
                     fade-out-duration-ms 2000
                     fade-in-delay-ms 0
                     fade-in-duration-ms 2000
                     mix-mode :crossfade}})
source

set-queueclj

(set-queue p paths)
source

set-replaygainclj

(set-replaygain p mode preamp-db prevent-clipping?)

mode: rockbox.ffi.enums/replaygain-mode (:off :track :album).

`mode`: rockbox.ffi.enums/replaygain-mode (:off :track :album).
sourceraw docstring

set-volumeclj

(set-volume p vol)
source

skip-toclj

(skip-to p index)
source

statusclj

(status p)

A snapshot of the player's status as a map (keyword keys).

A snapshot of the player's status as a map (keyword keys).
sourceraw docstring

stopclj

(stop p)
source

toggleclj

(toggle p)
source

volumeclj

(volume p)
source

with-playercljmacro

(with-player [sym & [config]] & body)

Bind sym to a fresh player (optional config), run body, then free it.

Bind `sym` to a fresh player (optional `config`), run `body`, then free it.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close