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/BaseSoundManager.js
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,14 @@ var BaseSoundManager = new Class({
138
138
}
139
139
returnsound;
140
140
},
141
+
/**
142
+
* Enables playing sound on the fly without the need to keep a reference to it.
143
+
* Sound will auto destroy once its playback ends.
144
+
*
145
+
* @method Phaser.Sound.BaseSoundManager#play
146
+
* @param {string} key - Asset key for the sound.
147
+
* @param {ISoundConfig | ISoundMarker} [extra] - An optional additional object containing settings to be applied to the sound. It could be either config or marker object.
0 commit comments