Removed z value change.

This commit is contained in:
Alex West 2023-01-26 16:23:25 +00:00
parent 9ff5dc5e77
commit fc737e60b7
2 changed files with 1 additions and 3 deletions

View file

@ -182,7 +182,6 @@ var WebAudioSound = new Class({
this.spatialNode = manager.context.createPanner();
this.volumeNode.connect(this.spatialNode);
}
if (manager.context.createStereoPanner)
@ -478,7 +477,7 @@ var WebAudioSound = new Class({
this.manager.setAudioDestination({ x: this.manager.game.config.width / 2, y: this.manager.game.config.height / 2 });
}
this.spatialNode.panningModel = source.panningModel || 'equalpower',
this.spatialNode.distanceModel = source.distanceModel || 'linear',
this.spatialNode.distanceModel = source.distanceModel || 'inverse',
this.spatialNode.positionX.value = source.x;
this.spatialNode.positionY.value = source.y;
this.spatialNode.positionZ.value = source.z || 0;

View file

@ -284,7 +284,6 @@ var WebAudioSoundManager = new Class({
{
this.audioDestination = destination;
this.context.listener.positionZ.value = 300;
},