You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v3/src/sound/BaseSound.js
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -240,6 +240,16 @@ var BaseSound = new Class({
240
240
this.markers[markerName]=null;
241
241
returnmarker;
242
242
},
243
+
/**
244
+
* Play this sound, or a marked section of it.
245
+
* It always plays the sound from the start. If you want to start playback from a specific time
246
+
* you can set 'seek' setting of the config object, provided to this call, to that value.
247
+
*
248
+
* @method Phaser.Sound.BaseSound#play
249
+
* @param {string} [markerName=''] - If you want to play a marker then provide the marker name here, otherwise omit it to play the full sound.
250
+
* @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.
0 commit comments