(load-sound url)
Initiates a download of the url as a sound. Returns a channel. When loaded and decoded, sends a decoded buffer object down the channel. This buffer can be used directly as a sound source
Initiates a download of the url as a sound. Returns a channel. When loaded and decoded, sends a decoded buffer object down the channel. This buffer can be used directly as a sound source
(play-sound buff)
(play-sound buff g & [loop-flag])
pass this a buffer, and an optional gain parameter, and the sound will be played to the speakers
pass this a buffer, and an optional gain parameter, and the sound will be played to the speakers
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close