Enable opus low bitrate redundancy for internal testing.

This commit is contained in:
Jim Gustafson
2023-11-15 08:15:45 -08:00
committed by Greyson Parrelli
parent 70e64003f9
commit d20b6f355c
5 changed files with 34 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ public final class InternalValues extends SignalStoreValues {
public static final String CALLING_AUDIO_PROCESSING_METHOD = "internal.calling_audio_processing_method";
public static final String CALLING_DATA_MODE = "internal.calling_bandwidth_mode";
public static final String CALLING_DISABLE_TELECOM = "internal.calling_disable_telecom";
public static final String CALLING_DISABLE_LBRED = "internal.calling_disable_lbred";
public static final String SHAKE_TO_REPORT = "internal.shake_to_report";
public static final String DISABLE_STORAGE_SERVICE = "internal.disable_storage_service";
public static final String FORCE_WEBSOCKET_MODE = "internal.force_websocket_mode";
@@ -172,6 +173,17 @@ public final class InternalValues extends SignalStoreValues {
}
}
/**
* Whether or not LBRed for Opus is manually disabled.
*/
public synchronized boolean callingDisableLBRed() {
if (FeatureFlags.internalUser()) {
return getBoolean(CALLING_DISABLE_LBRED, false);
} else {
return true;
}
}
/**
* Whether or not the system is forced to be in 'websocket mode', where FCM is ignored and we use a foreground service to keep the app alive.
*/