Skip to content

Commit 9665ab2

Browse files
Added fallback to createGainNode method call for webkit implementation when creating global volume node
1 parent e66f1b7 commit 9665ab2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var WebAudioSoundManager = new Class({
3636
* @private
3737
* @property {GainNode} masterVolumeNode
3838
*/
39-
this.masterVolumeNode = this.context.createGain();
39+
this.masterVolumeNode = (this.context.createGain || this.context.createGainNode).call(this.context);
4040
this.masterMuteNode.connect(this.masterVolumeNode);
4141
this.masterVolumeNode.connect(this.context.destination);
4242
/**

0 commit comments

Comments
 (0)