Running on the XCode Simulator my game does not play any music using media.playSound()!
It works in the Corona simulator and on the device builds. [import]uid: 6928 topic_id: 1551 reply_id: 301551[/import]
Running on the XCode Simulator my game does not play any music using media.playSound()!
It works in the Corona simulator and on the device builds. [import]uid: 6928 topic_id: 1551 reply_id: 301551[/import]
Logged for you: http://developer.anscamobile.com/issues/1554 [import]uid: 54 topic_id: 1551 reply_id: 4383[/import]
What file format are you trying to play?
In Beta 7 you can test the Sound functions with the AudioPlayer in the /iPhone/GettingStarted folder.
There is a problem with the Bouncing02 sound files. You need to make all the sound files lowercase or they won’t play on the iPhone device. Also, iPhone doesn’t support .ogg formats.
The media.PlayEvent only plays .caf and .aif formats on the iPhone. [import]uid: 7559 topic_id: 1551 reply_id: 4386[/import]
You have the full source of my game (incl. changes for beta 7)…
I did not mention a problem with playing sounds on the device
Nor that I have any problem with media.PlayEvent() (they work)
The sound files are mp3 and are all lowercase.
Please build my app for the Xcode Simulator and check if you have music output! [import]uid: 6928 topic_id: 1551 reply_id: 4389[/import]
Those changes were listed to make the AudioPlayer sample code work. I suggested that program so you can verify that it plays sound in the Xcode simulator.
I tried your 0.40 version on my Xcode Simulator (V3.2.2) and it crashes after the splash screen.
Version 0.37 (using the beta 7 main fixes) runs fine and plays sound in Xcode simulator.
We need to look at why it crashes.
-Tom [import]uid: 7559 topic_id: 1551 reply_id: 4390[/import]
Hmm… it does not crash for me with Xcode 3.2.3 …
I just tried it again. Works but still no music is playing. [import]uid: 6928 topic_id: 1551 reply_id: 4392[/import]
Works for me in 3.2.3 in simulator. [import]uid: 54 topic_id: 1551 reply_id: 4557[/import]
Really strange… Most disturbing that I get kind of a “freeze” for half a second when I toggle the music from of to on (which just does pauseSound()/playSound() internal).
I will try to reproduce that… just to busy to really care at the moment! I come back to you if I find out more about it. [import]uid: 6928 topic_id: 1551 reply_id: 4566[/import]
I was able to get sound from your app on a few machines running the Xcode simulator (3.2.3). Can you try removing the app from the iPhone simulator and running it again? We are seeing some strange problems with apps running more than once on the Xcode simulator.
Thanks,
-Tom [import]uid: 7559 topic_id: 1551 reply_id: 4636[/import]
Well… I did that. I tried different names, purged all simulator apps.
BTW: I was the one which told others to delete all Xcode versions of their apps because it did not restart at a second run.
I may have some time at the WE to do detailed tests. [import]uid: 6928 topic_id: 1551 reply_id: 4642[/import]
Sorry, but it’s easy to lose track of who says what here. 
Thanks,
-Tom [import]uid: 7559 topic_id: 1551 reply_id: 4647[/import]