Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var isAudioContextSupported = function () {
// This feature is still prefixed in Safari
window.AudioContext = window.AudioContext || window.webkitAudioContext;
return true;
else {
return false;
var audioContext;
if(isAudioContextSupported()) {
audioContext = new window.AudioContext();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment