Changes between Version 37 and Version 38 of Getting-Started/Android


Ignore:
Timestamp:
Dec 17, 2014 8:13:26 AM (9 years ago)
Author:
nanang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/Android

    v37 v38  
    159159Currently, the only workaround is to use PJSIP's Android JNI sound device instead (one way to do this is by defining PJMEDIA_AUDIO_DEV_HAS_ANDROID_JNI to 1 and PJMEDIA_AUDIO_DEV_HAS_OPENSL to 0). 
    160160 
    161 {{{ 
    162 #!comment 
    163 === Bad audio recording quality on some devices === #mics4 
    164161 
    165 Reported that on Samsung Galaxy S4 & S5, audio recorded on the microphone (by capturing the data in AndroidRecorderCallback) is twice the speed what it should be. It could be fixed by setting audio mode in AudioManager to MODE_IN_COMMUNICATION before starting audio session, e.g: 
     162=== Bad audio recording quality on some devices === #badrecord 
     163 
     164Reported that audio quality recorded on the microphone is bad and the speed is twice what it should be, it only happens on some devices. It could be fixed by setting audio mode via {{{AudioManager}}} to {{{MODE_IN_COMMUNICATION}}} in the application, e.g: 
    166165{{{ 
    167166AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 
     167int original_mode = am.getMode(); 
     168 
     169/* Set audio mode before using audio device, for example before making/answering a SIP call */ 
    168170am.setMode(AudioManager.MODE_IN_COMMUNICATION); 
     171... 
     172/* Restore back to the original mode after finished with audio device */ 
     173am.setMode(original_mode); 
    169174}}} 
    170175 
    171 }}} 
    172176 
    173177== Other Android projects ==