Skip to content

Commit 7c657a9

Browse files
added a TODO to implement more accurate Web Audio support check
1 parent 7d8f551 commit 7c657a9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

v3/src/device/Audio.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ var Audio = {
3535
function init ()
3636
{
3737
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
3842
Audio.webAudio = !!(window['AudioContext'] || window['webkitAudioContext']);
3943

4044
var audioElement = document.createElement('audio');

0 commit comments

Comments
 (0)