Created
June 3, 2017 09:26
-
-
Save eivko/efa229db311b6181d416714bae269031 to your computer and use it in GitHub Desktop.
Подключение контекста Web Audio API
This file contains hidden or 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
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