apkfuckery/com.discord/smali/com/discord/stores/StoreMediaSettings.smali

2093 lines
55 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Lcom/discord/stores/StoreMediaSettings;
.super Lcom/discord/stores/Store;
.source "StoreMediaSettings.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-07-08 16:44:49 +00:00
Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;,
2020-11-11 19:31:32 +00:00
Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
}
.end annotation
# instance fields
.field public canUseVad:Z
.field public forceSelfMute:Z
.field public final stream:Lcom/discord/stores/StoreStream;
.field public voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
.field public voiceConfigurationCache:Lcom/discord/stores/VoiceConfigurationCache;
.field public final voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/SerializedSubject<",
"Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;",
"Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/discord/stores/StoreStream;)V
2020-11-11 19:31:32 +00:00
.locals 1
2020-05-17 12:40:10 +00:00
2020-10-19 23:59:54 +00:00
const-string/jumbo v0, "stream"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Lcom/discord/stores/Store;-><init>()V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->stream:Lcom/discord/stores/StoreStream;
2020-11-09 19:03:49 +00:00
sget-object p1, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->Companion:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration$Companion;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration$Companion;->getDEFAULT_VOICE_CONFIG()Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
move-result-object p1
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-07-08 16:44:49 +00:00
new-instance v0, Lrx/subjects/SerializedSubject;
2020-05-17 12:40:10 +00:00
2020-10-05 23:18:16 +00:00
invoke-static {p1}, Lrx/subjects/BehaviorSubject;->h0(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0, p1}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
2020-05-17 12:40:10 +00:00
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/discord/stores/StoreMediaSettings;->canUseVad:Z
return-void
.end method
.method public static final synthetic access$handleCanUseVad(Lcom/discord/stores/StoreMediaSettings;Z)V
.locals 0
invoke-direct {p0, p1}, Lcom/discord/stores/StoreMediaSettings;->handleCanUseVad(Z)V
return-void
.end method
.method private final declared-synchronized handleCanUseVad(Z)V
.locals 0
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iput-boolean p1, p0, Lcom/discord/stores/StoreMediaSettings;->canUseVad:Z
invoke-direct {p0}, Lcom/discord/stores/StoreMediaSettings;->updateForceMute()V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
2020-11-11 19:31:32 +00:00
return-void
2020-05-17 12:40:10 +00:00
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception p1
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw p1
2020-05-17 12:40:10 +00:00
.end method
2020-11-11 19:31:32 +00:00
.method private final setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
.locals 1
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
2020-11-11 19:31:32 +00:00
iget-object v0, v0, Lrx/subjects/SerializedSubject;->e:Lh0/n/c;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0, p1}, Lh0/n/c;->onNext(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationCache:Lcom/discord/stores/VoiceConfigurationCache;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0, p1}, Lcom/discord/stores/VoiceConfigurationCache;->write(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
return-void
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
:cond_0
const-string/jumbo p1, "voiceConfigurationCache"
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {p1}, Ly/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
throw p1
.end method
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
.method private final updateForceMute()V
.locals 19
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-object/from16 v0, p0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-boolean v1, v0, Lcom/discord/stores/StoreMediaSettings;->canUseVad:Z
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
if-nez v1, :cond_0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v1, v0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v1}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getInputMode()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
sget-object v2, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;->VOICE_ACTIVITY:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
if-ne v1, v2, :cond_0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v1, 0x1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
:cond_0
const/4 v1, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
:goto_0
iput-boolean v1, v0, Lcom/discord/stores/StoreMediaSettings;->forceSelfMute:Z
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
if-eqz v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v2, v0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v3, 0x1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v5, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v6, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v7, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v8, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v9, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v10, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v11, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v12, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v13, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v14, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v15, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v17, 0x3ffe
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v18, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v1
invoke-direct {v0, v1}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
:cond_1
return-void
2020-05-17 12:40:10 +00:00
.end method
2020-11-11 19:31:32 +00:00
# virtual methods
.method public final getInputMode()Lrx/Observable;
2020-05-17 12:40:10 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-11 19:31:32 +00:00
"()",
2020-05-17 12:40:10 +00:00
"Lrx/Observable<",
2020-11-11 19:31:32 +00:00
"Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;",
2020-05-17 12:40:10 +00:00
">;"
}
.end annotation
2020-11-11 19:31:32 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
sget-object v1, Lcom/discord/stores/StoreMediaSettings$getInputMode$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getInputMode$1;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->D(Lh0/k/b;)Lrx/Observable;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 .map { it.inputMode }"
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
.end method
2020-11-11 19:31:32 +00:00
.method public final declared-synchronized getMutedUsers()Ljava/util/Map;
.locals 1
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-11 19:31:32 +00:00
"()",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/Boolean;",
2020-05-17 12:40:10 +00:00
">;"
}
.end annotation
2020-11-11 19:31:32 +00:00
monitor-enter p0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getMutedUsers()Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
monitor-exit p0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
:catchall_0
move-exception v0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
monitor-exit p0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
throw v0
.end method
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
.method public final getStream()Lcom/discord/stores/StoreStream;
.locals 1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->stream:Lcom/discord/stores/StoreStream;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
.end method
.method public final getUsersMuted()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/Boolean;",
">;>;"
}
.end annotation
2020-11-11 19:31:32 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
sget-object v1, Lcom/discord/stores/StoreMediaSettings$getUsersMuted$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getUsersMuted$1;
invoke-virtual {v0, v1}, Lrx/Observable;->D(Lh0/k/b;)Lrx/Observable;
move-result-object v0
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 .map { it.mutedUsers }"
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-11-11 19:31:32 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
return-object v0
.end method
.method public final getUsersVolume()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/Float;",
">;>;"
}
.end annotation
2020-11-11 19:31:32 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
sget-object v1, Lcom/discord/stores/StoreMediaSettings$getUsersVolume$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getUsersVolume$1;
invoke-virtual {v0, v1}, Lrx/Observable;->D(Lh0/k/b;)Lrx/Observable;
move-result-object v0
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 { it.userOutputVolumes }"
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-11-11 19:31:32 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
return-object v0
.end method
.method public final declared-synchronized getVideoHardwareScalingBlocking()Z
.locals 1
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getEnableVideoHardwareScaling()Z
move-result v0
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final getVoiceConfig()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-09-16 23:45:23 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
return-object v0
.end method
.method public final getVoiceConfiguration()Lrx/Observable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
return-object v0
.end method
.method public final declared-synchronized getVoiceConfigurationBlocking()Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
2020-11-11 19:31:32 +00:00
.method public init(Landroid/content/Context;)V
.locals 10
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
const-string v0, "context"
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
invoke-super {p0, p1}, Lcom/discord/stores/Store;->init(Landroid/content/Context;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
new-instance p1, Lcom/discord/stores/VoiceConfigurationCache;
2020-05-17 12:40:10 +00:00
invoke-virtual {p0}, Lcom/discord/stores/Store;->getPrefs()Landroid/content/SharedPreferences;
move-result-object v0
2020-11-11 19:31:32 +00:00
invoke-direct {p1, v0}, Lcom/discord/stores/VoiceConfigurationCache;-><init>(Landroid/content/SharedPreferences;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationCache:Lcom/discord/stores/VoiceConfigurationCache;
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
if-eqz p1, :cond_0
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {p1}, Lcom/discord/stores/VoiceConfigurationCache;->read()Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
move-result-object p1
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
invoke-direct {p0, p1}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
iget-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->stream:Lcom/discord/stores/StoreStream;
2020-08-24 20:40:41 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreStream;->getVoiceChannelSelected$app_productionDiscordExternalRelease()Lcom/discord/stores/StoreVoiceChannelSelected;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceChannelSelected;->getId()Lrx/Observable;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
new-instance v0, Lcom/discord/stores/StoreMediaSettings$init$1;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-direct {v0, p0}, Lcom/discord/stores/StoreMediaSettings$init$1;-><init>(Lcom/discord/stores/StoreMediaSettings;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {p1, v0}, Lrx/Observable;->U(Lh0/k/b;)Lrx/Observable;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const-string/jumbo p1, "stream\n .voiceCha\u2026 }\n }"
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {v1, p1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const-class v2, Lcom/discord/stores/StoreMediaSettings;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 02:08:46 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 02:08:46 +00:00
const/4 v5, 0x0
2020-09-16 23:45:23 +00:00
2020-11-11 02:08:46 +00:00
const/4 v6, 0x0
2020-09-16 23:45:23 +00:00
2020-11-11 19:31:32 +00:00
new-instance v7, Lcom/discord/stores/StoreMediaSettings$init$2;
2020-09-16 23:45:23 +00:00
2020-11-11 19:31:32 +00:00
invoke-direct {v7, p0}, Lcom/discord/stores/StoreMediaSettings$init$2;-><init>(Lcom/discord/stores/StoreMediaSettings;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v8, 0x1e
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v9, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static/range {v1 .. v9}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-11-11 02:08:46 +00:00
return-void
2020-05-17 12:40:10 +00:00
2020-11-11 02:08:46 +00:00
:cond_0
2020-11-11 19:31:32 +00:00
const-string/jumbo p1, "voiceConfigurationCache"
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {p1}, Ly/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 p1, 0x0
2020-07-08 16:44:49 +00:00
2020-11-11 19:31:32 +00:00
throw p1
2020-05-17 12:40:10 +00:00
.end method
.method public final isSelfDeafened()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
sget-object v1, Lcom/discord/stores/StoreMediaSettings$isSelfDeafened$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$isSelfDeafened$1;
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->D(Lh0/k/b;)Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-11-09 19:03:49 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026map { it.isSelfDeafened }"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-09-16 23:45:23 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
return-object v0
.end method
.method public final isSelfMuted()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
sget-object v1, Lcom/discord/stores/StoreMediaSettings$isSelfMuted$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$isSelfMuted$1;
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->D(Lh0/k/b;)Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-11-09 19:03:49 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026.map { it.isSelfMuted() }"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-09-16 23:45:23 +00:00
const-string/jumbo v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
return-object v0
.end method
2020-07-08 16:44:49 +00:00
.method public final declared-synchronized setNoiseProcessing(Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
move-object/from16 v0, p1
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
const-string v2, "noiseProcessing"
2020-07-08 16:44:49 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {v0, v2}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseProcessing()Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
if-eq v0, v2, :cond_0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
2020-07-08 16:44:49 +00:00
const/4 v6, 0x0
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
const/4 v7, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v8, 0x0
2020-05-17 12:40:10 +00:00
const/4 v10, 0x0
2020-09-22 07:09:10 +00:00
const/4 v11, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v12, 0x0
2020-09-17 00:45:48 +00:00
2020-09-22 07:09:10 +00:00
const/4 v13, 0x0
2020-09-18 17:51:47 +00:00
2020-11-11 19:31:32 +00:00
const/4 v14, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v15, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v17, 0x3fbf
const/16 v18, 0x0
move-object/from16 v9, p1
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
.method public final declared-synchronized setOutputVolume(F)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
2020-09-22 07:09:10 +00:00
const/4 v9, 0x0
2020-11-11 19:31:32 +00:00
const/4 v10, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v11, 0x0
const/4 v13, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v14, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v15, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v17, 0x3dff
const/16 v18, 0x0
move/from16 v12, p1
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
.method public final declared-synchronized setSelfDeafen(Z)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
move/from16 v0, p1
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isSelfDeafened()Z
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result v2
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-11-11 19:31:32 +00:00
if-ne v2, v0, :cond_0
2020-05-17 12:40:10 +00:00
monitor-exit p0
return-void
:cond_0
:try_start_1
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
2020-09-22 07:09:10 +00:00
const/4 v11, 0x0
2020-09-18 17:51:47 +00:00
2020-11-11 19:31:32 +00:00
const/4 v12, 0x0
2020-09-22 07:09:10 +00:00
const/4 v13, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v14, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v15, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v17, 0x3ffd
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v18, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move/from16 v4, p1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-direct {v1, v2}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
sget-object v2, Lcom/discord/utilities/media/AppSoundManager$Provider;->INSTANCE:Lcom/discord/utilities/media/AppSoundManager$Provider;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v2}, Lcom/discord/utilities/media/AppSoundManager$Provider;->get()Lcom/discord/utilities/media/AppSoundManager;
move-result-object v2
if-eqz v0, :cond_1
sget-object v0, Lcom/discord/utilities/media/AppSound;->Companion:Lcom/discord/utilities/media/AppSound$Companion;
invoke-virtual {v0}, Lcom/discord/utilities/media/AppSound$Companion;->getSOUND_DEAFEN()Lcom/discord/utilities/media/AppSound;
move-result-object v0
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_1
2020-11-11 19:31:32 +00:00
sget-object v0, Lcom/discord/utilities/media/AppSound;->Companion:Lcom/discord/utilities/media/AppSound$Companion;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Lcom/discord/utilities/media/AppSound$Companion;->getSOUND_UNDEAFEN()Lcom/discord/utilities/media/AppSound;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
:goto_0
2020-11-11 19:31:32 +00:00
invoke-virtual {v2, v0}, Lcom/discord/utilities/media/AppSoundManager;->play(Lcom/discord/utilities/media/AppSound;)V
2020-05-17 12:40:10 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
.method public final declared-synchronized setSelfMuted(Z)Z
2020-11-11 19:31:32 +00:00
.locals 20
2020-11-09 19:03:49 +00:00
move-object/from16 v1, p0
move/from16 v0, p1
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-09 19:03:49 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isSelfMuted()Z
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
move-result v2
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
if-eq v2, v0, :cond_3
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
iget-boolean v2, v1, Lcom/discord/stores/StoreMediaSettings;->forceSelfMute:Z
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v2, :cond_0
goto :goto_2
2020-05-17 12:40:10 +00:00
:cond_0
2020-11-09 19:03:49 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
iget-object v4, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v4}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isSelfDeafened()Z
move-result v4
2020-11-11 19:31:32 +00:00
const/16 v19, 0x1
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v4, :cond_1
if-eqz v0, :cond_1
const/4 v4, 0x1
goto :goto_0
:cond_1
2020-05-17 12:40:10 +00:00
const/4 v4, 0x0
2020-11-09 19:03:49 +00:00
:goto_0
2020-05-17 12:40:10 +00:00
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
2020-09-22 07:09:10 +00:00
const/4 v11, 0x0
2020-11-09 19:03:49 +00:00
const/4 v12, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v13, 0x0
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
const/4 v14, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x3ffc
const/16 v18, 0x0
2020-11-09 19:03:49 +00:00
move/from16 v3, p1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {v1, v2}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
sget-object v2, Lcom/discord/utilities/media/AppSoundManager$Provider;->INSTANCE:Lcom/discord/utilities/media/AppSoundManager$Provider;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v2}, Lcom/discord/utilities/media/AppSoundManager$Provider;->get()Lcom/discord/utilities/media/AppSoundManager;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v0, :cond_2
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
sget-object v0, Lcom/discord/utilities/media/AppSound;->Companion:Lcom/discord/utilities/media/AppSound$Companion;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0}, Lcom/discord/utilities/media/AppSound$Companion;->getSOUND_MUTE()Lcom/discord/utilities/media/AppSound;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
:cond_2
sget-object v0, Lcom/discord/utilities/media/AppSound;->Companion:Lcom/discord/utilities/media/AppSound$Companion;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0}, Lcom/discord/utilities/media/AppSound$Companion;->getSOUND_UNMUTE()Lcom/discord/utilities/media/AppSound;
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v0
:goto_1
invoke-virtual {v2, v0}, Lcom/discord/utilities/media/AppSoundManager;->play(Lcom/discord/utilities/media/AppSound;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
2020-11-11 19:31:32 +00:00
return v19
2020-05-17 12:40:10 +00:00
2020-11-09 19:03:49 +00:00
:cond_3
:goto_2
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-09 19:03:49 +00:00
return v3
2020-05-17 12:40:10 +00:00
:catchall_0
2020-11-09 19:03:49 +00:00
move-exception v0
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-09 19:03:49 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
.method public final declared-synchronized setSensitivity(F)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
2020-09-22 07:09:10 +00:00
const/4 v7, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v8, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v9, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v11, 0x0
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
const/4 v12, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v13, 0x0
const/4 v14, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v15, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v17, 0x3f7f
const/16 v18, 0x0
move/from16 v10, p1
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
.method public final declared-synchronized setUserOutputVolume(JF)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v5, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v6, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, 0x0
const/4 v13, 0x0
new-instance v14, Ljava/util/HashMap;
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getUserOutputVolumes()Ljava/util/Map;
move-result-object v0
invoke-direct {v14, v0}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
invoke-static/range {p1 .. p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
invoke-static/range {p3 .. p3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v15
invoke-virtual {v14, v0, v15}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x37ff
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v18, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
2020-09-22 07:09:10 +00:00
.method public final declared-synchronized setVADUseKrisp(Z)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-09-18 17:51:47 +00:00
monitor-enter p0
2020-09-22 07:09:10 +00:00
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-09-22 07:09:10 +00:00
const/4 v3, 0x0
2020-11-11 19:31:32 +00:00
const/4 v4, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v5, 0x0
2020-09-22 07:09:10 +00:00
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
2020-11-11 19:31:32 +00:00
const/4 v11, 0x0
2020-09-22 07:09:10 +00:00
const/4 v12, 0x0
2020-11-11 19:31:32 +00:00
const/4 v13, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v14, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v15, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
const/16 v17, 0x3ff7
const/16 v18, 0x0
move/from16 v6, p1
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-09-22 07:09:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-09-22 07:09:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-09-22 07:09:10 +00:00
.end method
.method public final declared-synchronized setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-09-22 07:09:10 +00:00
monitor-enter p0
2020-07-23 01:06:17 +00:00
:try_start_0
const-string v0, "noiseProcessing"
2020-11-11 19:31:32 +00:00
move-object/from16 v9, p1
2020-07-23 01:06:17 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {v9, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-23 01:06:17 +00:00
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-07-23 01:06:17 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
2020-09-22 07:09:10 +00:00
const/4 v7, 0x0
2020-07-23 01:06:17 +00:00
2020-11-11 19:31:32 +00:00
const/4 v8, 0x0
2020-07-23 01:06:17 +00:00
const/4 v10, 0x0
2020-09-22 07:09:10 +00:00
const/4 v11, 0x0
2020-09-18 17:51:47 +00:00
2020-11-11 19:31:32 +00:00
const/4 v12, 0x0
2020-09-22 07:09:10 +00:00
const/4 v13, 0x0
2020-07-23 01:06:17 +00:00
2020-11-11 19:31:32 +00:00
const/4 v14, 0x0
const/4 v15, 0x0
2020-07-23 01:06:17 +00:00
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
2020-07-23 01:06:17 +00:00
2020-11-11 19:31:32 +00:00
const/16 v17, 0x3fbf
2020-07-23 01:06:17 +00:00
2020-11-11 19:31:32 +00:00
const/16 v18, 0x0
move-object/from16 v9, p1
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-07-23 01:06:17 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-07-23 01:06:17 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-07-23 01:06:17 +00:00
.end method
2020-05-17 12:40:10 +00:00
.method public final declared-synchronized setVoiceInputMode(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
const-string v0, "inputMode"
2020-11-11 19:31:32 +00:00
move-object/from16 v11, p1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {v11, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
2020-09-22 07:09:10 +00:00
const/4 v9, 0x0
2020-09-17 00:45:48 +00:00
2020-11-11 19:31:32 +00:00
const/4 v10, 0x0
2020-09-18 17:51:47 +00:00
2020-11-11 19:31:32 +00:00
const/4 v12, 0x0
2020-09-22 07:09:10 +00:00
const/4 v13, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v14, 0x0
const/4 v15, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v17, 0x3eff
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v18, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-object/from16 v11, p1
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
invoke-direct/range {p0 .. p0}, Lcom/discord/stores/StoreMediaSettings;->updateForceMute()V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
.method public final declared-synchronized toggleAutomaticGainControl()V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
const/4 v3, 0x0
2020-09-22 07:09:10 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v5, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v6, 0x0
2020-09-17 00:45:48 +00:00
2020-11-11 19:31:32 +00:00
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-09-18 17:51:47 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticGainControl()Z
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
const/4 v7, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-11-11 19:31:32 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
const/4 v7, 0x0
2020-11-11 19:31:32 +00:00
:goto_0
2020-05-17 12:40:10 +00:00
const/4 v8, 0x0
const/4 v9, 0x0
2020-09-22 07:09:10 +00:00
const/4 v10, 0x0
2020-09-18 17:51:47 +00:00
2020-11-11 19:31:32 +00:00
const/4 v11, 0x0
2020-09-22 07:09:10 +00:00
const/4 v12, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v13, 0x0
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x3fef
const/16 v18, 0x0
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-11-11 19:31:32 +00:00
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleAutomaticVAD()V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticVad()Z
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
if-nez v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v0, 0x1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v5, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-11-11 19:31:32 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
const/4 v5, 0x0
2020-11-11 19:31:32 +00:00
:goto_0
2020-05-17 12:40:10 +00:00
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
2020-09-22 07:09:10 +00:00
const/4 v10, 0x0
2020-11-11 19:31:32 +00:00
const/4 v11, 0x0
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
const/4 v12, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v13, 0x0
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x3ffb
const/16 v18, 0x0
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-11-11 19:31:32 +00:00
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleEchoCancellation()V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
const/4 v3, 0x0
const/4 v4, 0x0
2020-09-22 07:09:10 +00:00
const/4 v5, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v6, 0x0
const/4 v7, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-09-17 00:45:48 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getEchoCancellation()Z
2020-09-18 17:51:47 +00:00
2020-11-11 19:31:32 +00:00
move-result v0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
if-nez v0, :cond_0
const/4 v0, 0x1
const/4 v8, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-11-11 19:31:32 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
const/4 v8, 0x0
2020-11-11 19:31:32 +00:00
:goto_0
2020-05-17 12:40:10 +00:00
const/4 v9, 0x0
2020-09-22 07:09:10 +00:00
const/4 v10, 0x0
2020-11-11 19:31:32 +00:00
const/4 v11, 0x0
2020-05-17 12:40:10 +00:00
2020-09-22 07:09:10 +00:00
const/4 v12, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v13, 0x0
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x3fdf
const/16 v18, 0x0
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-11-11 19:31:32 +00:00
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleEnableVideoHardwareScaling()V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, 0x0
const/4 v13, 0x0
const/4 v14, 0x0
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getEnableVideoHardwareScaling()Z
move-result v0
2020-05-17 12:40:10 +00:00
if-nez v0, :cond_0
const/4 v0, 0x1
2020-11-11 19:31:32 +00:00
const/4 v15, 0x1
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
const/4 v0, 0x0
2020-11-11 19:31:32 +00:00
const/4 v15, 0x0
2020-05-17 12:40:10 +00:00
:goto_0
2020-11-11 19:31:32 +00:00
const/16 v16, 0x0
const/16 v17, 0x2fff
const/16 v18, 0x0
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleNoiseCancellation()V
2020-07-23 01:06:17 +00:00
.locals 2
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseProcessing()Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
sget-object v1, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Cancellation:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
if-ne v0, v1, :cond_0
2020-07-23 01:06:17 +00:00
sget-object v0, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Suppression:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
2020-07-08 16:44:49 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;)V
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-07-23 01:06:17 +00:00
sget-object v0, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Cancellation:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
2020-07-08 16:44:49 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-07-08 16:44:49 +00:00
:goto_0
2020-05-17 12:40:10 +00:00
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleNoiseSuppression()V
2020-07-23 01:06:17 +00:00
.locals 2
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseProcessing()Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
sget-object v1, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Suppression:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
if-ne v0, v1, :cond_0
2020-07-23 01:06:17 +00:00
sget-object v0, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->None:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
2020-07-08 16:44:49 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;)V
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-07-23 01:06:17 +00:00
sget-object v0, Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;->Suppression:Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;
2020-07-08 16:44:49 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$NoiseProcessing;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-07-08 16:44:49 +00:00
:goto_0
2020-05-17 12:40:10 +00:00
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleSelfDeafened()V
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-11-09 19:03:49 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isSelfDeafened()Z
2020-05-17 12:40:10 +00:00
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-virtual {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setSelfDeafen(Z)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleSelfMuted()Z
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-11-09 19:03:49 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isSelfMuted()Z
2020-05-17 12:40:10 +00:00
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-virtual {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setSelfMuted(Z)Z
move-result v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleUserMuted(J)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v4, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v5, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v6, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v7, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v8, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, 0x0
new-instance v13, Ljava/util/HashMap;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getMutedUsers()Ljava/util/Map;
move-result-object v0
invoke-direct {v13, v0}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
invoke-static/range {p1 .. p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v13, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
goto :goto_0
:cond_0
2020-11-11 19:31:32 +00:00
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
2020-05-17 12:40:10 +00:00
:goto_0
2020-11-11 19:31:32 +00:00
const-string v14, "get(userId) ?: false"
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static {v0, v14}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static/range {p1 .. p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v14
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
if-nez v0, :cond_1
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v0, 0x1
2020-07-08 16:44:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
:cond_1
2020-11-11 19:31:32 +00:00
const/4 v0, 0x0
2020-07-08 16:44:49 +00:00
:goto_1
2020-11-11 19:31:32 +00:00
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-virtual {v13, v14, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x3bff
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
const/16 v18, 0x0
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-05-17 12:40:10 +00:00
2020-11-11 19:31:32 +00:00
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-05-17 12:40:10 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
2020-09-22 07:09:10 +00:00
.method public final declared-synchronized toggleVADUseKrisp()V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-09-22 07:09:10 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v2, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v3, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v4, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v5, 0x0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getVadUseKrisp()Z
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
move-result v0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
if-nez v0, :cond_0
2020-09-22 07:09:10 +00:00
2020-11-11 19:31:32 +00:00
const/4 v0, 0x1
const/4 v6, 0x1
2020-09-22 07:09:10 +00:00
goto :goto_0
:cond_0
2020-11-11 19:31:32 +00:00
const/4 v0, 0x0
2020-09-22 07:09:10 +00:00
const/4 v6, 0x0
2020-11-11 19:31:32 +00:00
:goto_0
2020-09-22 07:09:10 +00:00
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
2020-11-11 19:31:32 +00:00
const/4 v11, 0x0
2020-09-22 07:09:10 +00:00
const/4 v12, 0x0
2020-11-11 19:31:32 +00:00
const/4 v13, 0x0
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x3ff7
const/16 v18, 0x0
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-09-22 07:09:10 +00:00
move-result-object v0
2020-11-11 19:31:32 +00:00
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-09-22 07:09:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
2020-08-24 20:40:41 +00:00
.method public final declared-synchronized updateVoiceParticipantsHidden(Z)V
2020-11-11 19:31:32 +00:00
.locals 19
move-object/from16 v1, p0
2020-08-24 20:40:41 +00:00
monitor-enter p0
:try_start_0
2020-11-11 19:31:32 +00:00
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getVoiceParticipantsHidden()Z
move-result v0
move/from16 v2, p1
if-eq v0, v2, :cond_0
iget-object v0, v1, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, 0x0
const/4 v13, 0x0
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v17, 0x1fff
const/16 v18, 0x0
move-object v2, v0
move/from16 v16, p1
invoke-static/range {v2 .. v18}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZLcom/discord/stores/StoreMediaSettings$NoiseProcessing;FLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FLjava/util/Map;Ljava/util/Map;ZZILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {v1, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-08-24 20:40:41 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-11-11 19:31:32 +00:00
:cond_0
2020-08-24 20:40:41 +00:00
monitor-exit p0
return-void
:catchall_0
2020-11-11 19:31:32 +00:00
move-exception v0
2020-08-24 20:40:41 +00:00
monitor-exit p0
2020-11-11 19:31:32 +00:00
throw v0
2020-08-24 20:40:41 +00:00
.end method