Skip to content

Instantly share code, notes, and snippets.

@eivko
Created June 3, 2017 09:26
Show Gist options
  • Save eivko/efa229db311b6181d416714bae269031 to your computer and use it in GitHub Desktop.
Save eivko/efa229db311b6181d416714bae269031 to your computer and use it in GitHub Desktop.
Подключение контекста Web Audio API
var context;
window.addEventListener('load', function(){
try {
window.AudioContext = window.AudioContext||window.webkitAudioContext;
context = new AudioContext();
}
catch(e) {
alert('Ваш браузер не поддерживает Web Audio API');
}
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment