Skip to content

Commit c8c2886

Browse files
committed
updated the playTrack function to returns the current sound instance (as the play function is doing)
1 parent 8446ede commit c8c2886

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/audio/audio.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@
204204

205205
/**
206206
* stop the specified sound on all channels
207-
*
208207
* @name stop
209208
* @memberOf me.audio
210209
* @public
@@ -243,7 +242,6 @@
243242
* play the specified audio track<br>
244243
* this function automatically set the loop property to true<br>
245244
* and keep track of the current sound being played.
246-
*
247245
* @name playTrack
248246
* @memberOf me.audio
249247
* @public
@@ -256,6 +254,7 @@
256254
obj.playTrack = function (sound_id, volume) {
257255
current_track = me.audio.play(sound_id, true, null, volume);
258256
current_track_id = sound_id.toLowerCase();
257+
return current_track;
259258
};
260259

261260
/**

0 commit comments

Comments
 (0)