mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-20 01:18:26 +00:00
parent
51d6144591
commit
3fd5e58bd5
@ -179,12 +179,13 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
|
|||||||
|
|
||||||
private void initializeWebRtc() {
|
private void initializeWebRtc() {
|
||||||
Set<String> HARDWARE_AEC_WHITELIST = new HashSet<String>() {{
|
Set<String> HARDWARE_AEC_WHITELIST = new HashSet<String>() {{
|
||||||
|
add("D5803");
|
||||||
|
add("FP1");
|
||||||
|
add("SM-A500FU");
|
||||||
|
add("XT1092");
|
||||||
}};
|
}};
|
||||||
|
|
||||||
Set<String> OPEN_SL_ES_BLACKLIST = new HashSet<String>() {{
|
Set<String> OPEN_SL_ES_WHITELIST = new HashSet<String>() {{
|
||||||
add("MI 4LTE"); // Xiami Mi4 #6241
|
|
||||||
add("Nexus 5"); // Nexus 5 #6432
|
|
||||||
add("LG-D852"); // LG G3 #6432
|
|
||||||
}};
|
}};
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= 11) {
|
if (Build.VERSION.SDK_INT >= 11) {
|
||||||
@ -194,7 +195,9 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
|
|||||||
WebRtcAudioUtils.setWebRtcBasedAcousticEchoCanceler(true);
|
WebRtcAudioUtils.setWebRtcBasedAcousticEchoCanceler(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OPEN_SL_ES_BLACKLIST.contains(Build.MODEL)) {
|
if (OPEN_SL_ES_WHITELIST.contains(Build.MODEL)) {
|
||||||
|
WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(false);
|
||||||
|
} else {
|
||||||
WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(true);
|
WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user