@@ -45,7 +45,7 @@ var WebAudioSound = new Class({
4545
4646 if ( ! this . audioBuffer )
4747 {
48- throw new Error ( 'There is no audio asset with key "' + key + '" in the audio cache' ) ;
48+ throw new Error ( 'Audio key "' + key + '" missing from cache' ) ;
4949 }
5050
5151 /**
@@ -97,6 +97,7 @@ var WebAudioSound = new Class({
9797 * @name Phaser.Sound.WebAudioSound#pannerNode
9898 * @type {StereoPannerNode }
9999 * @private
100+ * @since 3.50.0
100101 */
101102 this . pannerNode = manager . context . createStereoPanner ( ) ;
102103
@@ -187,7 +188,7 @@ var WebAudioSound = new Class({
187188
188189 /**
189190 * Play this sound, or a marked section of it.
190- *
191+ *
191192 * It always plays the sound from the start. If you want to start playback from a specific time
192193 * you can set 'seek' setting of the config object, provided to this call, to that value.
193194 *
@@ -451,12 +452,8 @@ var WebAudioSound = new Class({
451452 * @fires Phaser.Sound.Events#LOOPED
452453 * @protected
453454 * @since 3.0.0
454- *
455- * @param {number } time - The current timestamp as generated by the Request Animation Frame or SetTimeout.
456- * @param {number } delta - The delta time elapsed since the last frame.
457455 */
458- // eslint-disable-next-line no-unused-vars
459- update : function ( time , delta )
456+ update : function ( )
460457 {
461458 if ( this . hasEnded )
462459 {
@@ -626,7 +623,7 @@ var WebAudioSound = new Class({
626623
627624 /**
628625 * Sets the playback rate of this Sound.
629- *
626+ *
630627 * For example, a value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed
631628 * and 2.0 doubles the audios playback speed.
632629 *
@@ -636,7 +633,7 @@ var WebAudioSound = new Class({
636633 *
637634 * @param {number } value - The playback rate at of this Sound.
638635 *
639- * @return {Phaser.Sound.WebAudioSound } This Sound.
636+ * @return {this } This Sound instance .
640637 */
641638 setRate : function ( value )
642639 {
@@ -683,7 +680,7 @@ var WebAudioSound = new Class({
683680 *
684681 * @param {number } value - The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).
685682 *
686- * @return {Phaser.Sound.WebAudioSound } This Sound.
683+ * @return {this } This Sound instance .
687684 */
688685 setDetune : function ( value )
689686 {
@@ -695,7 +692,7 @@ var WebAudioSound = new Class({
695692 /**
696693 * Boolean indicating whether the sound is muted or not.
697694 * Gets or sets the muted state of this sound.
698- *
695+ *
699696 * @name Phaser.Sound.WebAudioSound#mute
700697 * @type {boolean }
701698 * @default false
@@ -728,7 +725,7 @@ var WebAudioSound = new Class({
728725 *
729726 * @param {boolean } value - `true` to mute this sound, `false` to unmute it.
730727 *
731- * @return {Phaser.Sound.WebAudioSound } This Sound instance.
728+ * @return {this } This Sound instance.
732729 */
733730 setMute : function ( value )
734731 {
@@ -739,7 +736,7 @@ var WebAudioSound = new Class({
739736
740737 /**
741738 * Gets or sets the volume of this sound, a value between 0 (silence) and 1 (full volume).
742- *
739+ *
743740 * @name Phaser.Sound.WebAudioSound#volume
744741 * @type {number }
745742 * @default 1
@@ -771,7 +768,7 @@ var WebAudioSound = new Class({
771768 *
772769 * @param {number } value - The volume of the sound.
773770 *
774- * @return {Phaser.Sound.WebAudioSound } This Sound instance.
771+ * @return {this } This Sound instance.
775772 */
776773 setVolume : function ( value )
777774 {
@@ -785,7 +782,7 @@ var WebAudioSound = new Class({
785782 * Setting it to a specific value moves current playback to that position.
786783 * The value given is clamped to the range 0 to current marker duration.
787784 * Setting seek of a stopped sound has no effect.
788- *
785+ *
789786 * @name Phaser.Sound.WebAudioSound#seek
790787 * @type {number }
791788 * @fires Phaser.Sound.Events#SEEK
@@ -847,7 +844,7 @@ var WebAudioSound = new Class({
847844 *
848845 * @param {number } value - The point in the sound to seek to.
849846 *
850- * @return {Phaser.Sound.WebAudioSound } This Sound instance.
847+ * @return {this } This Sound instance.
851848 */
852849 setSeek : function ( value )
853850 {
@@ -858,7 +855,7 @@ var WebAudioSound = new Class({
858855
859856 /**
860857 * Flag indicating whether or not the sound or current sound marker will loop.
861- *
858+ *
862859 * @name Phaser.Sound.WebAudioSound#loop
863860 * @type {boolean }
864861 * @default false
@@ -899,7 +896,7 @@ var WebAudioSound = new Class({
899896 *
900897 * @param {boolean } value - `true` to loop this sound, `false` to not loop it.
901898 *
902- * @return {Phaser.Sound.WebAudioSound } This Sound instance.
899+ * @return {this } This Sound instance.
903900 */
904901 setLoop : function ( value )
905902 {
@@ -915,7 +912,7 @@ var WebAudioSound = new Class({
915912 * @type {number }
916913 * @default 0
917914 * @fires Phaser.Sound.Events#PAN
918- * @since 3.0 .0
915+ * @since 3.50 .0
919916 */
920917 pan : {
921918
@@ -934,15 +931,15 @@ var WebAudioSound = new Class({
934931 } ,
935932
936933 /**
937- * Sets the pan of this Sound .
934+ * Sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan) .
938935 *
939936 * @method Phaser.Sound.WebAudioSound#setPan
940937 * @fires Phaser.Sound.Events#PAN
941- * @since 3.4 .0
938+ * @since 3.50 .0
942939 *
943- * @param {number } value - The pan of the sound.
940+ * @param {number } value - The pan of the sound. A value between -1 (full left pan) and 1 (full right pan).
944941 *
945- * @return {Phaser.Sound.WebAudioSound } This Sound instance.
942+ * @return {this } This Sound instance.
946943 */
947944 setPan : function ( value )
948945 {
0 commit comments