Can we start a music at 10th seconds instead of always start from beginning?
i have checked Audio API it seems not able to.
[import]uid: 10373 topic_id: 26676 reply_id: 326676[/import]
For streams (loadStream), just seek the handle to the 10 sec position with audio.seek.
For non-streams (loadSound) you will have to do some dancing. Call audio.play, then audio.pause. Then do a seek on the channel that is currently playing the sample. Then call audio.resume. You might also want to set the channel volume to 0 when you first start playing and then restore the volume just before the audio.resume. [import]uid: 7563 topic_id: 26676 reply_id: 108126[/import]
Thanks again ewing!
Then is there an API to return current how playing song’s secs?
E.g.
howManySecsPlayed = audio.functionX(music\_handler)
coz i need a function to adjust the player pointer
[import]uid: 10373 topic_id: 26676 reply_id: 108225[/import]
Sorry, not currently. (For loadSound, you can use the ‘secret’ audio APIs to directly query OpenAL, but generally nobody really needs this for loadSound).
loadStream is much harder to implement for the general case and with correctness.
Discussed here:
http://developer.anscamobile.com/forum/2011/01/21/soundposition
Your easiest solution is to keep track of the play start time and compute the position yourself.
[import]uid: 7563 topic_id: 26676 reply_id: 108328[/import]
hi ewing, yeah, i can’t find any suitable API.
YES! i have already done the magic together with onEnterFrame events 
Thanks for the support! [import]uid: 10373 topic_id: 26676 reply_id: 108337[/import]