audio.loadStream() working the first time, but when I stop the music and try to reload and play, it plays 1 second then dies.
title says most of it, but additional information would be:
- The idea naturally isa button to toggle music on and off.
- It works in the simulator.
- I am using the additional {bufferSize=8192, maxQueueBuffers=12, startupBuffers=4, buffersQueuedPerUpdate=2} code I saw in other help threads in the loadStream().
I have tried two variants of the code, doing (assume all parameters are verified and correct):
- audio.loadStream()
- audio.play()
- audio.stop()
then to restart it I was simply calling audio.play() again.
- audio.loadStream()
- audio.play()
- audio.stop()
- audio.dispose()
then to restart it I call loadStream() and audio.play() again.
Each time the result is the same.
The first time hte music plays fine in the apple devices, and stops when I click the buttun. But when I try to play it again, it only plays the first second or so of the MP3.
Any help most gratefully accepted.
Barry [import]uid: 46639 topic_id: 18961 reply_id: 318961[/import]
[import]uid: 46639 topic_id: 18961 reply_id: 73119[/import]