zoul / Finch

Simple, low-latency OpenAL sound engine for Apple iOS.
http://github.com/zoul/Finch/
MIT License
435 stars 345 forks source link

FYI: No Sound From Finch w/ OpenEars in iOS 4.3.x #20

Closed jessecurry closed 11 years ago

jessecurry commented 13 years ago

I was having problems getting audio to play on iPhones running iOS 4.3 after OpenEars had initialized its audio session. The strangest part was that everything worked fine on an iPod Touch with 4.3 and an iPhone with iOS 5.

After a ton of searching, a ton of troubleshooting, and lots of banging my head against the wall I found that I could force the ALCcontext's Frequency to 16000 and sound was working again.

I added the following into the engine code:

int attrlist[] = { ALC_FREQUENCY, 16000, ALC_INVALID }; context = alcCreateContext(device, attrlist);

Obviously, not a robust solution, but I wanted to give you a heads up regarding a potential incompatibility. I unfortunately don't have the time to create a proper patch.