Everyplay / everyplay-ios-sdk

Everyplay SDK for iOS
https://developers.everyplay.com
92 stars 31 forks source link

Everyplay's supportsOpenAL mute OpenAL sounds on iPhone/iPad #27

Closed sefonty closed 10 years ago

sefonty commented 10 years ago

When Everyplay supportsOpenAL returns YES, OpenAL sounds that do not update every frame become mute.

For the first recording, OpenAL sound is fine. Subsequent recordings mute the OpenAL sound.

One workaround is to update all the sounds every frame. If this does not work, I reinitialize the oalPlayback object and all the sounds that were disabled by having Everyplay integrated.

However, this workaround will not work if I experience issue #26; the game remains mute.

Implementing this workaround seems to mess up supportsAVFoundation as well, but I do not record background music anyway for the app I'm working on so I have supportsAVFoundation return NO to help isolate the sound issue to OpenAL sounds.

Mainly testing on: iPhone 4s Everyplay Version: 1.8.2 iOS Version: 8.0

This particular error occurs on other devices as well.

aet commented 10 years ago

closing issue, continuing on #26