can't vibrate

Home Forums OpenEars can't vibrate

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

  • Author
    Posts
  • #1026418
    xwang
    Participant

    Hi Halle,

    I have a question here, i am using AudioServicesPlaySystemSounds(kSystemSoundID_vibrate) to make the phone vibrate, it looks like it cannot vibrate while openear was listening, because if i do not start openears, vibrate works perfect.

    I saw many threads in forum that said use
    [AudioSessionManager sharedAudioSessionManager].soundMixing = TRUE; and
    #import <OpenEars/AudioSessionManager.h>
    but the import head file cannot be found now, can you tell me any hints what i can do for this?

    #1026453
    Halle Winkler
    Politepix

    Welcome! I apologize for the delay in answering you. The reason that AudioSessionManager no longer needs to be directly accessed is that mixing is now set by default. There is also a mixing setting as part of OEPocketsphinxController if you check out its header. It is possible that in addition to mixing (which you shouldn’t have to change because it now defaults to mixing=YES) you also have to set audioMode = @”VoiceChat” in order to have system sounds (including vibrate, which for whatever reason is dependent on system sounds) working.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.