Hello Steve!
I try to load a .caf sound. But I get error 40963 in the loadSound function of SoundEngine. Simple sound, duration is 4 seconds, I can play it by QT player.
Thanks
A fast, easy to use, free, and community supported 2D game engine
Hello Steve!
I try to load a .caf sound. But I get error 40963 in the loadSound function of SoundEngine. Simple sound, duration is 4 seconds, I can play it by QT player.
Thanks
Caf files are wrappers around some other audio format. The most likely explanation is your caf file contains audio data in an unsupported format. Try using afconvert to convert your file to another format like wave or IMA4.
I'm actually running into this same issue playing aif files. The circumstances of how I get this error are a bit different though. I have a UIWebView for a portion of my game. The user has the option to play youtube videos inside this view. If I play a video, close the UIWebView returning to the game sound effects no longer work for me. I've traced this down to the OpenAL error 40963 which I am doing some internet searching for details on. Nothing yet but thought I would share what I've found so far.
Woah thanks for the quick reply. Totally looks like the same issue thanks for the heads up. I am going through the details now and trying things out. Thanks very much. Will get back to this thread after I test things out.
Details in the other thread totally worked! Thanks for the referral. I just extended the SimpleAudioEngine class to have methods for calling audioSessionInterrupted and audioSessionResumed then called those methods before/after loading my UIWebView respectively.
Great. Just for future reference with the current (couple of days old) and future versions of SimpleAudioEngine you can also access the CDAudioManager shared instance directly e.g
[[CDAudioManager sharedManager] audioSessionInterrupted]
You must log in to post.