Skip to content

Commit cd43f00

Browse files
fixed deprecation issues with AudioParam for WebAudioSoundManager
1 parent 1f32f04 commit cd43f00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'mute', {
9595
return this.masterMuteNode.gain.value === 0;
9696
},
9797
set: function (value) {
98-
this.masterMuteNode.gain.value = value ? 0 : 1;
98+
this.masterMuteNode.gain.setValueAtTime(value ? 0 : 1, 0);
9999
}
100100
});
101101
/**
@@ -107,7 +107,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'volume', {
107107
return this.masterVolumeNode.gain.value;
108108
},
109109
set: function (value) {
110-
this.masterVolumeNode.gain.value = value;
110+
this.masterVolumeNode.gain.setValueAtTime(value, 0);
111111
}
112112
});
113113
/**

0 commit comments

Comments
 (0)