Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 714 Bytes
<!DOCTYPE html>
<script src='../lib/webaudiox.shim.js'></script>
<script src='../lib/webaudiox.lineout.js'></script>
<script src='../lib/webaudiox.loadbuffer.js'></script>
<body style='margin: 0px; background-color: #bbbbbb; overflow: hidden;'><script>
var context = new AudioContext()
// Create lineOut
var lineOut = new WebAudiox.LineOut(context)
lineOut.volume = 1
// load a sound and play it immediatly
WebAudiox.loadBuffer(context, 'sounds/techno.mp3', function(buffer){
// init AudioBufferSourceNode
var source = context.createBufferSource();
source.buffer = buffer
source.loop = true
// start the sound now