mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Removed z value change.
This commit is contained in:
parent
9ff5dc5e77
commit
fc737e60b7
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -284,7 +284,6 @@ var WebAudioSoundManager = new Class({
|
|||
{
|
||||
|
||||
this.audioDestination = destination;
|
||||
this.context.listener.positionZ.value = 300;
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue