Hack to workaround Galaxy S speaker/mic issue (Android)

This commit is contained in:
Guillaume Beraudo 2011-08-05 16:11:35 +02:00
parent a0b9b02506
commit 68df42b292
2 changed files with 11 additions and 1 deletions

View file

@ -1341,3 +1341,13 @@ extern "C" jboolean Java_org_linphone_core_LinphoneCallImpl_isAuthenticationToke
extern "C" jboolean Java_org_linphone_core_LinphoneCallImpl_areStreamsEncrypted(JNIEnv* env,jobject thiz,jlong ptr) {
return linphone_call_are_all_streams_encrypted((LinphoneCall *) ptr);
}
// Needed by Galaxy S (can't switch to/from speaker while playing and still keep mic working)
// Implemented directly in msandroid.cpp (sound filters for Android).
extern "C" void msandroid_hack_speaker_state(bool speakerOn);
extern "C" void Java_org_linphone_LinphoneManager_hackSpeakerState(JNIEnv* env,jobject thiz,jboolean speakerOn){
msandroid_hack_speaker_state(speakerOn);
// End Galaxy S hack functions
}

@ -1 +1 @@
Subproject commit 813dd63dc151d4202c3f52f3eab9f6d880bfc19b
Subproject commit 57319ab677c00e43b576b4204df870074a9216f6