Created
September 21, 2017 18:15
-
-
Save andrewmunro/9ce7370583b1891f9e3768a7203703dc to your computer and use it in GitHub Desktop.
Monkeypatch decodeAudioData to prevent errors when codec is not installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AudioContext.prototype.decodeAudioData = (_, cb) => { if(cb) cb(new AudioContext().createBuffer(1, 19999999, 44100))}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment