Audio not working in iOS7 (FIXED without workaround. alxPlay working)
by Joao Brandao · in iTorque 2D · 04/05/2014 (9:04 am) · 0 replies
I got this information from Michael Cozzolino, of Big Monk Games, who in turn got it from someone else (Paul Jan, I think) in Github.
Here's how you can do it:
- Edit the file audio.cc in the engine/source/audio folder inside the iTorque installation folder.
- Simply comment out (or delete) lines 2451 and 2452:
#else
mContext = alcCreateContext(mDevice,NULL);
And there... alxPlay working again. It seems the alcCreateContext was being called twice unnecessarily, and that cause alxPlay to stop working.
Here's how you can do it:
- Edit the file audio.cc in the engine/source/audio folder inside the iTorque installation folder.
- Simply comment out (or delete) lines 2451 and 2452:
#else
mContext = alcCreateContext(mDevice,NULL);
And there... alxPlay working again. It seems the alcCreateContext was being called twice unnecessarily, and that cause alxPlay to stop working.
About the author
I'm a little old to start programming, as I'm 32, but being unemployed pushed me into learning new skills and go back to the area I graduated in (New Technologies). I am my own worst enemy, as I procrastinate a lot, and I'm very lazy. Also, I love games.