(cleanup-audio {:keys [context device]})Clean up the openAL sources, buffers, device and context.
Clean up the openAL sources, buffers, device and context.
(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).
(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.
(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).
(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.
(stop! source)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |