Skip to content

Commit ebd23f9

Browse files
Fixed play method docs
1 parent 0d20a41 commit ebd23f9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var HTML5AudioSound = new Class({
9494
* @since 3.0.0
9595
*
9696
* @param {string} [markerName=''] - If you want to play a marker then provide the marker name here, otherwise omit it to play the full sound.
97-
* @param {ISoundConfig} [config] - Optional sound config object to be applied to this marker or entire sound if no marker name is provided. It gets memorized for future plays of current section of the sound.
97+
* @param {SoundConfig} [config] - Optional sound config object to be applied to this marker or entire sound if no marker name is provided. It gets memorized for future plays of current section of the sound.
9898
*
9999
* @return {boolean} Whether the sound started playing successfully.
100100
*/
@@ -104,7 +104,6 @@ var HTML5AudioSound = new Class({
104104
{
105105
return false;
106106
}
107-
108107
if (!BaseSound.prototype.play.call(this, markerName, config))
109108
{
110109
return false;
@@ -121,7 +120,6 @@ var HTML5AudioSound = new Class({
121120
* @param {Phaser.Sound.HTML5AudioSound} sound - Reference to the sound that emitted event.
122121
*/
123122
this.emit('play', this);
124-
125123
return true;
126124
},
127125

0 commit comments

Comments
 (0)