We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d8f551 commit 7c657a9Copy full SHA for 7c657a9
1 file changed
v3/src/device/Audio.js
@@ -35,6 +35,10 @@ var Audio = {
35
function init ()
36
{
37
Audio.audioData = !!(window['Audio']);
38
+
39
+ // TODO check if AudioContext is actually implemented
40
+ // sometimes browsers have a stub object for AudioContext
41
+ // which will falsely report Web Audio as available
42
Audio.webAudio = !!(window['AudioContext'] || window['webkitAudioContext']);
43
44
var audioElement = document.createElement('audio');
0 commit comments