mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
3.50.1 Release
This commit is contained in:
parent
080296e1a6
commit
60cc53f972
6 changed files with 118248 additions and 117499 deletions
117185
dist/phaser-arcade-physics.js
vendored
117185
dist/phaser-arcade-physics.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/phaser-arcade-physics.min.js
vendored
2
dist/phaser-arcade-physics.min.js
vendored
File diff suppressed because one or more lines are too long
38
dist/phaser-facebook-instant-games.js
vendored
38
dist/phaser-facebook-instant-games.js
vendored
|
@ -12414,7 +12414,7 @@ var CONST = {
|
|||
* @type {string}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
VERSION: '3.50.0',
|
||||
VERSION: '3.50.1',
|
||||
|
||||
BlendModes: __webpack_require__(36),
|
||||
|
||||
|
@ -107948,12 +107948,14 @@ var WebAudioSound = new Class({
|
|||
/**
|
||||
* Panner node responsible for controlling this sound's pan.
|
||||
*
|
||||
* Doesn't work on iOS / Safari.
|
||||
*
|
||||
* @name Phaser.Sound.WebAudioSound#pannerNode
|
||||
* @type {StereoPannerNode}
|
||||
* @private
|
||||
* @since 3.50.0
|
||||
*/
|
||||
this.pannerNode = manager.context.createStereoPanner();
|
||||
this.pannerNode = null;
|
||||
|
||||
/**
|
||||
* The time at which the sound should have started playback from the beginning.
|
||||
|
@ -108029,9 +108031,18 @@ var WebAudioSound = new Class({
|
|||
|
||||
this.muteNode.connect(this.volumeNode);
|
||||
|
||||
this.volumeNode.connect(this.pannerNode);
|
||||
if (manager.context.createStereoPanner)
|
||||
{
|
||||
this.pannerNode = manager.context.createStereoPanner();
|
||||
|
||||
this.pannerNode.connect(manager.destination);
|
||||
this.volumeNode.connect(this.pannerNode);
|
||||
|
||||
this.pannerNode.connect(manager.destination);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.volumeNode.connect(manager.destination);
|
||||
}
|
||||
|
||||
this.duration = this.audioBuffer.duration;
|
||||
|
||||
|
@ -108762,6 +108773,8 @@ var WebAudioSound = new Class({
|
|||
/**
|
||||
* Gets or sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).
|
||||
*
|
||||
* Always returns zero on iOS / Safari as it doesn't support the stereo panner node.
|
||||
*
|
||||
* @name Phaser.Sound.WebAudioSound#pan
|
||||
* @type {number}
|
||||
* @default 0
|
||||
|
@ -108772,13 +108785,24 @@ var WebAudioSound = new Class({
|
|||
|
||||
get: function ()
|
||||
{
|
||||
return this.pannerNode.pan.value;
|
||||
if (this.pannerNode)
|
||||
{
|
||||
return this.pannerNode.pan.value;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
|
||||
set: function (value)
|
||||
{
|
||||
this.currentConfig.pan = value;
|
||||
this.pannerNode.pan.setValueAtTime(value, this.manager.context.currentTime);
|
||||
|
||||
if (this.pannerNode)
|
||||
{
|
||||
this.pannerNode.pan.setValueAtTime(value, this.manager.context.currentTime);
|
||||
}
|
||||
|
||||
this.emit(Events.PAN, this, value);
|
||||
}
|
||||
|
@ -108787,6 +108811,8 @@ var WebAudioSound = new Class({
|
|||
/**
|
||||
* Sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).
|
||||
*
|
||||
* Note: iOS / Safari doesn't support the stereo panner node.
|
||||
*
|
||||
* @method Phaser.Sound.WebAudioSound#setPan
|
||||
* @fires Phaser.Sound.Events#PAN
|
||||
* @since 3.50.0
|
||||
|
|
2
dist/phaser-facebook-instant-games.min.js
vendored
2
dist/phaser-facebook-instant-games.min.js
vendored
File diff suppressed because one or more lines are too long
118518
dist/phaser.js
vendored
118518
dist/phaser.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/phaser.min.js
vendored
2
dist/phaser.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue