title: AudioContext decodeAudioData issue on Safari
body: <p>I want to decode .ogg contents into an ArrayBuffer.</p>
  
  <p>I have following code in my Angular application component:</p>
  
  <pre><code>ngOnInit() {
    (window as any).AudioContext = (window as any).AudioContext || (window as any).webkitAudioContext;
    this.audioContext = new AudioContext();
  }
  
  myFunction(oggArrayBuffer) {
    this.audioContext.decodeAudioData(oggArrayBuffer, function(buffer) {
      console.log('decoded audio data', buffer);
    },
    function(e) { console.log('Error with decoding audio data', e); });
  }
  </code></pre>
  
  <p>This works on Chrome, but on Safari 11, the error is being triggered:</p>
  
  <blockquote>
    <p>Error with decoding audio data null</p>
  </blockquote>
  
  <p>What could I be missing?</p>