Hi everyone!
We have a problem to stop and play audio with “loadStream”.
This is my code:
[code]local Audio01 = audio.loadSound(“Audio01.mp3”)
function Page01 (event)
audio.play(Audio01, {channel=2, loops=0,})
end
function ExitPage01 (event)
audio.stop(2)
end
[/code]
When I call “ExitPage01” the audio is stopped, and when I call “Page01” again, the audio file is played from the beginning. This is that I want.
But if I decide to use loadStream instead of loadSound, when I call “Page01” again, the audio file is played from the exact time when was stopped.
This is a bug or is the normal behaviour?
I tried to fix it with audio.rewind(2), but doesn’t work.
Thanks in advance.
Rafael León.
[import]uid: 104648 topic_id: 22609 reply_id: 322609[/import]