context = new (window.AudioContext || window.webkitAudioContext)(); // shim layer with setTimeout fallback window.requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function( callback ){ window.setTimeout(callback, 1000 / 60); }; })(); var sample = new AudioTagSample({orientation:'horizontal',axisScale:'lin'}); var links = document.querySelectorAll('.audio'); for (i=0;i