We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9098b80 commit 6577a23Copy full SHA for 6577a23
1 file changed
v3/src/sound/webaudio/WebAudioSoundManager.js
@@ -5,6 +5,15 @@ var WebAudioSound = require('./WebAudioSound');
5
var WebAudioSoundManager = new Class({
6
Extends: BaseSoundManager,
7
initialize: function WebAudioSoundManager(game) {
8
+ /**
9
+ * Flag indicating if Web Audio implementation is webkit or standards based.
10
+ * There are certain cases where they have to be handled differently.
11
+ *
12
+ * https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Porting_webkitAudioContext_code_to_standards_based_AudioContext
13
14
+ * @property {boolean} webkit
15
+ */
16
+ this.webkit = !!window['webkitAudioContext'] && !window['AudioContext'];
17
/**
18
* The AudioContext being used for playback.
19
*
0 commit comments