Module

Audio.Graph.ResourceLoader

Package
purescript-audiograph
Repository
newlandsvalley/purescript-audiograph

#loadBuffers Source

loadBuffers :: AudioContext -> AudioGraph -> Aff (Either String AudioBuffers)

attempt to load the sound buffers for all nodes that identify them (currently AudioBufferSourceNodes) and return an Error if any fail or an audioBuffers map if all's OK.