mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Update to RingRTC v2.15.0
Also adds audio processing option for internal users.
This commit is contained in:
committed by
Greyson Parrelli
parent
deddb4f77d
commit
83d3e56dcf
@@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.keyvalue;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import org.signal.ringrtc.CallManager;
|
||||
import org.thoughtcrime.securesms.BuildConfig;
|
||||
import org.thoughtcrime.securesms.util.FeatureFlags;
|
||||
|
||||
@@ -23,6 +24,7 @@ public final class InternalValues extends SignalStoreValues {
|
||||
public static final String REMOVE_SENDER_KEY_MINIMUM = "internal.remove_sender_key_minimum";
|
||||
public static final String DELAY_RESENDS = "internal.delay_resends";
|
||||
public static final String CALLING_SERVER = "internal.calling_server";
|
||||
public static final String AUDIO_PROCESSING_METHOD = "internal.audio_processing_method";
|
||||
public static final String SHAKE_TO_REPORT = "internal.shake_to_report";
|
||||
public static final String DISABLE_STORAGE_SERVICE = "internal.disable_storage_service";
|
||||
|
||||
@@ -153,4 +155,16 @@ public final class InternalValues extends SignalStoreValues {
|
||||
}
|
||||
return internalServer != null ? internalServer : BuildConfig.SIGNAL_SFU_URL;
|
||||
}
|
||||
|
||||
/**
|
||||
* The selected audio processing method to use (for AEC/NS).
|
||||
* <p>
|
||||
* The user must be an internal user otherwise the default method will be returned. For
|
||||
* evaluation, internal users will use software processing by default unless the setting
|
||||
* is changed in storage.
|
||||
*/
|
||||
public synchronized CallManager.AudioProcessingMethod audioProcessingMethod() {
|
||||
return FeatureFlags.internalUser() ? CallManager.AudioProcessingMethod.values()[getInteger(AUDIO_PROCESSING_METHOD, CallManager.AudioProcessingMethod.ForceSoftware.ordinal())]
|
||||
: CallManager.AudioProcessingMethod.Default;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user