I've added new sound files i got from our sound designer, they're either .caf or .aif files. Both result in the following error when played using SoundEngineManager playSound:
Error loading looping file info: 4
(gdb) continue
2009-06-24 21:19:21.291 ArmageddonAgain[706:207] Can't load sfx_m_fade_in01.aif
2009-06-24 21:19:21.318 ArmageddonAgain[706:207] *** Assertion failure in -[SoundEngineManager addSound:], /depot/ArmageddonAgain/AudioSupport/SoundEngineManager.m:222
2009-06-24 21:19:21.332 ArmageddonAgain[706:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to load sound'
At first i thought it's because the soundfiles were in stereo but after matching them with Sapus' sounds (16 bit, 44 kHz, Mono) it still crashes on the iPhone. Then i read about little & big endian mismatch but i have no idea how to check or fix that.
At the moment we're just using the files as plain old .wav files (long live the plain and simple formats).
I have two questions:
- is this "error loading looping file info" something common and does it have a common cause and solution?
- are there any drawbacks to using .wav files instead of .caf/.aif for sound playback?