Game music stops...

The first time you play my game, the music plays. However upon reaching the game over scene and going back to the menu, the music will play for about half a second then stop. This happens every time, except the very first.

The only music related code i use is
at the beggining i use

local soundtrack = audio.loadStream("shapes.caf")

then when the scene ends

 audio.stop( soundtrack ) --to stop music 

What could be some possible causes? [import]uid: 59735 topic_id: 17154 reply_id: 317154[/import]

I’m assuming you’re running iOS5?

This is a known issue with iOS5, however it should be fixed if you compile with build 2011.645 or later.

Here’s a discussion that might be helpful
https://developer.anscamobile.com/forum/2011/08/06/sound-not-working-latest-ipad-build [import]uid: 70847 topic_id: 17154 reply_id: 64566[/import]

Would like to hear what version you’re using, please :slight_smile:

As ingemar said this was fixed in build .645 if it is in fact the iOS5 issue.

Let us know!

Peach :slight_smile:

[import]uid: 52491 topic_id: 17154 reply_id: 64579[/import]

Thank you guys so much!!! It works now. I was using the last stable build, and I downloaded the latest one and it works! [import]uid: 59735 topic_id: 17154 reply_id: 64609[/import]

Glad to hear it :slight_smile: [import]uid: 52491 topic_id: 17154 reply_id: 64933[/import]