Changes between Version 37 and Version 38 of Getting-Started/Android
- Timestamp:
- Dec 17, 2014 8:13:26 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Getting-Started/Android
v37 v38 159 159 Currently, 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). 160 160 161 {{{162 #!comment163 === Bad audio recording quality on some devices === #mics4164 161 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 164 Reported 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: 166 165 {{{ 167 166 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); 167 int original_mode = am.getMode(); 168 169 /* Set audio mode before using audio device, for example before making/answering a SIP call */ 168 170 am.setMode(AudioManager.MODE_IN_COMMUNICATION); 171 ... 172 /* Restore back to the original mode after finished with audio device */ 173 am.setMode(original_mode); 169 174 }}} 170 175 171 }}}172 176 173 177 == Other Android projects ==