Event sounds not working on device

I have a handful of event sounds and one background music sound file. All of them work in the simulator, however, when I test on the device none of the event sounds work (only the music file). I have tested both .caf and .mp3 file types. Any ideas?

Thanks. [import]uid: 10356 topic_id: 4000 reply_id: 304000[/import]

I have the same problem.Sound in simulator, not on device
Even without the background music file I get no event sounds…
Platform: Ipad

code
[lua]local bomb_snd = media.newEventSound( “bomb.caf” )
media.playEventSound(bomb_snd)[/lua]
[import]uid: 10100 topic_id: 4000 reply_id: 12095[/import]

I had the same problem. I was using too high a sampling rate on my .caf files and so they weren’t compatible with the device (though they worked fine on the simulator). This also made it freeze for a second on the ipad when the sound was going to play (though not on an iphone 4).

It was fixed when I lowered the sampling rate to 16 bits I think (can’t check at the moment). In the docs the correct setting for .caf files are mentioned. That’s most likely your problem [import]uid: 10835 topic_id: 4000 reply_id: 12097[/import]

[SOLVED]
From the documentation:

For the highest quality event sounds, use 16-bit, little endian, linear PCM audio data packaged in the Core Audio Format (.caf)
(I could not get it to work with the sounds in a sound folder…)

[import]uid: 10100 topic_id: 4000 reply_id: 12100[/import]

How do I use the afconvert command?

/usr/bin/afconvert -f caff -d LEI16 {INPUT}{OUTPUT}

I’m not familiar with terminal tools… [import]uid: 10356 topic_id: 4000 reply_id: 12105[/import]

A .caf file is just a renamed .aif file. So if you have a sound app (QuickTime will do) that can save as .aif, just rename the suffix .caf and it should work. [import]uid: 1560 topic_id: 4000 reply_id: 12107[/import]

Yep, that worked great! Thanks!!

I used Audacity to save the .aif files. [import]uid: 10356 topic_id: 4000 reply_id: 12108[/import]

Thanks IgnacioIturra!!! [import]uid: 10100 topic_id: 4000 reply_id: 12139[/import]

I have my ipad game finished, the sound is working, its on my ipad and everything is fine.
Now i’m building for device for iphone4, with the same code and the same audio files.
But now the events sounds are not working on my iphone4 but they work in the simulator

Anybody any idea what the problem can be?
The game uses up to 24mb memory, could it be a memory problem?

The audio is:
16-bit, little endian, linear PCM audio data packaged in the Core Audio Format (.caf)

thanks,

[import]uid: 10100 topic_id: 4000 reply_id: 13412[/import]