BenoitFreslon

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author
    Posts
  • in 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];
    } 
    in 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];
    in reply to: SimpleAudioEngine in Cocos2d no sound #1020311
    BenoitFreslon
    Participant

    Hello,

    I got the same problem.

    Did you find a workaround?

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)