Reply To: SimpleAudioEngine in Cocos2d no sound

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

#1020324
BenoitFreslon
Participant

I try to stop all active OpenEars delegate like this:

- (void) stop {
    if (self.openEarsEventsObserver) {
        self.openEarsEventsObserver.delegate = nil;
        self.openEarsEventsObserver = nil;
    }
    if (self.pocketsphinxController)  {
        [self.pocketsphinxController stopListening];
        self.pocketsphinxController = nil;
    }
    
    NSError *error;
    [[AVAudioSession sharedInstance]
     setCategory:AVAudioSessionCategorySoloAmbient error:&error];
}