We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
playTrack
play
1 parent 8446ede commit c8c2886Copy full SHA for c8c2886
src/audio/audio.js
@@ -204,7 +204,6 @@
204
205
/**
206
* stop the specified sound on all channels
207
- *
208
* @name stop
209
* @memberOf me.audio
210
* @public
@@ -243,7 +242,6 @@
243
242
* play the specified audio track<br>
244
* this function automatically set the loop property to true<br>
245
* and keep track of the current sound being played.
246
247
* @name playTrack
248
249
@@ -256,6 +254,7 @@
256
254
obj.playTrack = function (sound_id, volume) {
257
255
current_track = me.audio.play(sound_id, true, null, volume);
258
current_track_id = sound_id.toLowerCase();
+ return current_track;
259
};
260
261
0 commit comments