Hi Everyone…
Is there any way to make an audio play from a certain point?
I have a sound.mp3 file – last 1 minute
audio.play(sound) – will play the file from beginning
audio.stop(sound) – will cancel and stop the music.
what if I play the audio and in :15 seconds on the song
— How do I put PAUSE
and then How do I start the audio again, starting from :15 seconds and on
or the famous rewind or fastforward
a little bit more at a time, or a little bit less, to find part of that song
Thanks
RGgamer
2
I’m not aware of anything like this at the moment. 
Looks like you are after audio.seek -> http://bit.ly/1tLLl8w
RGgamer
4
Wow, so essentially, you can skip to any part in your audio file? That’s awesome!! I never knew I could do that! Or is that a recent update?
Been like that since the audio api was released, iirc 
I am trying seek
it works on loadStream only.
I hit the button, and it takes time, then find the spot on the audio and then plays from there…
And what are the options for rewind
I see this in Corona
audio.rewind( [audioHandle | options] )
but how do I actually write the code, and what options I have
I try this and got ERRORS
audio.rewind( songBaby, {5000} )
I thought 5000 will be the time to rewind, but it did not work
I found the audio.pause( ) it works fine
If you pause a channel then resume it later, it will resume from the same place.
That is based on you not using that channel for anything else between pause and resuming however
Thanks, I just have one sound in that scene, so it works fine
thanks
RGgamer
9
I’m not aware of anything like this at the moment. 
Looks like you are after audio.seek -> http://bit.ly/1tLLl8w
RGgamer
11
Wow, so essentially, you can skip to any part in your audio file? That’s awesome!! I never knew I could do that! Or is that a recent update?
Been like that since the audio api was released, iirc 
I am trying seek
it works on loadStream only.
I hit the button, and it takes time, then find the spot on the audio and then plays from there…
And what are the options for rewind
I see this in Corona
audio.rewind( [audioHandle | options] )
but how do I actually write the code, and what options I have
I try this and got ERRORS
audio.rewind( songBaby, {5000} )
I thought 5000 will be the time to rewind, but it did not work
I found the audio.pause( ) it works fine
If you pause a channel then resume it later, it will resume from the same place.
That is based on you not using that channel for anything else between pause and resuming however
Thanks, I just have one sound in that scene, so it works fine
thanks