AudioContext.js 182 B

12345678910111213
  1. var context;
  2. export function getAudioContext () {
  3. if ( context === undefined ) {
  4. context = new ( window.AudioContext || window.webkitAudioContext )();
  5. }
  6. return context;
  7. }