views:

81

answers:

2

So I׳m trying to play some effects in my Cocos2D game using SimpleAudioEngine , but after I have added them my app crashes when it goes to background (multitasked). I searched for this problem in the internet but all the solutions that I found didn't work for me. What I did find out is that this problem happens because my app is somehow trying to play sounds when backgrounded.

In console it shows me (which is the same error I found other people had):

sgx error (background gpu access not permitted):

And another thing, when I run my app on the simulator, or even on my device while debugging carefully (going line-by-line with XCode while the app is running) this doesn't happen.

A: 

Are you sure it's related to audio? "background gpu access" sounds like it's using OpenGL.

tc.
Yep, many people on the Internet said that this problem happened to them because of audio, and when I remove the effects it doesn't happen.
Cokegod