Reply To: SimpleAudioEngine in Cocos2d no sound

Home Forums OpenEars SimpleAudioEngine in Cocos2d no sound Reply To: SimpleAudioEngine in Cocos2d no sound

#1020322
BenoitFreslon
Participant

I just found a workaround to resume sounds in cocos2d.

I added this line of code:

    NSError *error;
    [[AVAudioSession sharedInstance]
     setCategory:AVAudioSessionCategorySoloAmbient error:&error];