mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
fixed deprecation issues with AudioParam for WebAudioSoundManager
This commit is contained in:
parent
1f32f04036
commit
cd43f0095c
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'mute', {
|
|||
return this.masterMuteNode.gain.value === 0;
|
||||
},
|
||||
set: function (value) {
|
||||
this.masterMuteNode.gain.value = value ? 0 : 1;
|
||||
this.masterMuteNode.gain.setValueAtTime(value ? 0 : 1, 0);
|
||||
}
|
||||
});
|
||||
/**
|
||||
|
@ -107,7 +107,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'volume', {
|
|||
return this.masterVolumeNode.gain.value;
|
||||
},
|
||||
set: function (value) {
|
||||
this.masterVolumeNode.gain.value = value;
|
||||
this.masterVolumeNode.gain.setValueAtTime(value, 0);
|
||||
}
|
||||
});
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue