Here's how the BufferLoader class can be used. In this simple example, two AudioBuffers are created and when they are finished loading, they are played back at the same time. This plays each time clicked, because that reloads it.

Here's a volume control for sample 3 of those loaded. Will only play once until reloaded.

Volume:



Home

Here's playing source3 directly out, rather than through the gain node of volume control

// will only place once, unless it is reloaded