3.50.1 Release

This commit is contained in:
Richard Davey 2020-12-21 13:36:57 +00:00
parent 080296e1a6
commit 60cc53f972
6 changed files with 118248 additions and 117499 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -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

File diff suppressed because one or more lines are too long

118518
dist/phaser.js vendored

File diff suppressed because it is too large Load diff

2
dist/phaser.min.js vendored

File diff suppressed because one or more lines are too long