Liking cljdoc? Tell your friends :D

clunk.audio


buffersclj


cleanup-audioclj

(cleanup-audio {:keys [context device]})

Clean up the openAL sources, buffers, device and context.

Clean up the openAL sources, buffers, device and context.
raw docstring

cleanup-stopped-sources!clj

(cleanup-stopped-sources!)

Run every frame to clean up any sources which have ended (looped sources don't end).

Run every frame to clean up any sources which have ended (looped
sources don't end).
raw docstring

init-audioclj

(init-audio)

Init openAL, returns the context and device so we can clean them up later.

Init openAL, returns the context and device so we can clean them up
later.
raw docstring

load-ogg-file!clj

(load-ogg-file! buffer-key path)

Load a *.ogg music file, returns the al-buffer id (so we can call alDeleteBuffers later).

Load a *.ogg music file, returns the al-buffer id (so we can call
`alDeleteBuffers` later).
raw docstring

play!clj

(play! buffer-key & {:keys [loop?] :or {loop? false}})

Play a buffered file, returns the source in case you need to manually stop! it.

Play a buffered file, returns the source in case you need to manually
`stop!` it.
raw docstring

sourcesclj


stop!clj

(stop! source)

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