OpenAL crash: PCMConverter::ConvertBufferList - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: OpenAL crash: PCMConverter::ConvertBufferList (/thread-2731.html)
OpenAL crash: PCMConverter::ConvertBufferList - reubert - Mar 8, 2008 04:16 AM
I am having a maddening problem with OpenAL. It will crash with EXC_BAD_ACCESS after a few minutes of playing many sounds, always in PCMConverter::ConvertBufferList usually in NativeInt16ToFloat32_X86. Sometimes instead of crashing it will corrupt memory elsewhere and set a bunch of my object pointers to 0x0, but when that happens the audio thread is always in the above function.
I found this thread: http://www.idevgames.com/forum/archive/index.php/t-10919.html which seems to have similar bug reports and as far as I can see the sollution was 'Upgraded OpenAL framework, so OpenAL crashes should no longer happen'
Now I'm on 10.5.2. This is the system OpenAL I am using. I've spent two full days now checking and double checking that my buffer sizes are all correct, running with guardmalloc, making sure all my audio code is as sounds as can be etc... has anyone had or seen similar problems? I'm running out of ideas here. Perhaps OpenAL on 10.5.2 is broken?
OpenAL crash: PCMConverter::ConvertBufferList - reubert - Mar 8, 2008 01:51 PM
Well that was the second most difficult to track down bug I have ever come across.
Sollution: Don't try to set a source's pitch to nan.
It would be nice if OpenAL didn't decide that such an operation warranted trashing memory - including causing complete system hangs - but there ya go. Now I think I need some sleep.
OpenAL crash: PCMConverter::ConvertBufferList - macnib - Mar 8, 2008 01:52 PM
Hmm, OpenAL has been working for me on 10.5.2 . Though, in my application's Contents directory, I make a folder called Frameworks and my app searchers there first for OpenAL. Maybe, I have an older version. Should read this before the system version. I put the expat framework I built there too. I ported over ALUT too. Seems to work well with 16 bit audio clips attained from soundsnap.com .