I just tried to “simulate” a program which uses “media.playSound” in order to play an MP3 file - but the simulator always crashes because it can’t find that file. The code is simple:
and -surprisingly (or not) - the error message displayed by the “Terminal” version of the simulator shows exactly the same (full) path to the file as (another) terminal into which I dragged the file itself. Thus, the file path looks correct as well…and it’s present…and iTunes can play it.
Thus, I don’t know how to proceed
Additionaly, it’s quite annoying having to restart the simulator over and over again just because it can’t find a single resource file!
yes - I did (as mentioned in the “needless to mention” phrase)
Nevertheless, playSound should NOT crash when the sound file does not exist: when a null Image object is created, an internal assertion fails (which is still somewhat cryptic, but - by scrolling back - the actual reason for this failure can be seen in clear text).
For that reason, the bug report is still meaningful!
Kind regards,
Andreas Rozek [import]uid: 4331 topic_id: 431 reply_id: 827[/import]
I don’t get any sound from the simulator at all. I’ve tried all the sample files that include sound. No errors
in the terminal. The demo apps work correctly apart from not playing sound. [import]uid: 5897 topic_id: 431 reply_id: 1595[/import]
For the record, there was a bug where if the sound file was missing, the simulator would crash. This has been fixed (in the latest beta). I can build the Zarathustra hello world and it plays sound just fine, in the simulator and on device. So additional info or specifics would be most welcome. [import]uid: 54 topic_id: 431 reply_id: 1625[/import]