oscillator-ended-1.html (369B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <script> 4 function createContext() { 5 var context = new window.AudioContext(); 6 var source = context.createOscillator(); 7 source.onended = function(e) { 8 document.documentElement.removeAttribute("class"); 9 }; 10 source.connect(context.destination); 11 source.start(0.49); 12 source.stop(0.5); 13 } 14 createContext(); 15 </script>