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

2147 lines
61 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/stores/StoreMediaSettings;
.super Lcom/discord/stores/Store;
.source "StoreMediaSettings.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;,
Lcom/discord/stores/StoreMediaSettings$Companion;
}
.end annotation
# static fields
.field public static final Companion:Lcom/discord/stores/StoreMediaSettings$Companion;
2019-12-06 03:29:40 +00:00
.field public static final DEFAULT_AUDIO_MODE:I = 0x3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final DEFAULT_OUTPUT_VOLUME:F = 100.0f
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public audioMode:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final audioModeCache:Lcom/discord/utilities/persister/Persister;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/discord/utilities/persister/Persister<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final audioModeSubject:Lrx/subjects/SerializedSubject;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/SerializedSubject<",
"Ljava/lang/Integer;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public canUseVad:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public enableVideoHardwareScaling:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final enableVideoHardwareScalingCache:Lcom/discord/utilities/persister/Persister;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/discord/utilities/persister/Persister<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final enableVideoHardwareScalingSubject:Lrx/subjects/SerializedSubject;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/SerializedSubject<",
"Ljava/lang/Boolean;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public forceSelfMute:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mutedUsers:Ljava/util/Map;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final mutedUsersCache:Lcom/discord/utilities/persister/Persister;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/discord/utilities/persister/Persister<",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/Boolean;",
">;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final mutedUsersSubject:Lrx/subjects/SerializedSubject;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/SerializedSubject<",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/Boolean;",
">;",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/Boolean;",
">;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final stream:Lcom/discord/stores/StoreStream;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public userOutputVolumes:Ljava/util/Map;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Long;",
2019-11-15 02:21:15 +00:00
"Ljava/lang/Float;",
2019-07-24 11:27:29 +00:00
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final userOutputVolumesCache:Lcom/discord/utilities/persister/Persister;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/discord/utilities/persister/Persister<",
"Ljava/util/Map<",
"Ljava/lang/Long;",
2019-11-15 02:21:15 +00:00
"Ljava/lang/Float;",
2019-07-24 11:27:29 +00:00
">;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final userOutputVolumesSubject:Lrx/subjects/SerializedSubject;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/SerializedSubject<",
"Ljava/util/Map<",
"Ljava/lang/Long;",
2019-11-15 02:21:15 +00:00
"Ljava/lang/Float;",
2019-07-24 11:27:29 +00:00
">;",
"Ljava/util/Map<",
"Ljava/lang/Long;",
2019-11-15 02:21:15 +00:00
"Ljava/lang/Float;",
2019-07-24 11:27:29 +00:00
">;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
2020-01-23 22:00:25 +00:00
.field public voiceConfigurationCache:Lcom/discord/stores/VoiceConfigurationCache;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2020-01-23 22:00:25 +00:00
.locals 2
2019-07-24 11:27:29 +00:00
new-instance v0, Lcom/discord/stores/StoreMediaSettings$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/discord/stores/StoreMediaSettings$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lcom/discord/stores/StoreMediaSettings;->Companion:Lcom/discord/stores/StoreMediaSettings$Companion;
return-void
.end method
.method public constructor <init>(Lcom/discord/stores/StoreStream;)V
2020-01-23 22:00:25 +00:00
.locals 3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/stores/Store;-><init>()V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->stream:Lcom/discord/stores/StoreStream;
new-instance p1, Lcom/discord/utilities/persister/Persister;
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
const-string v1, "MUTED_USERS"
invoke-direct {p1, v1, v0}, Lcom/discord/utilities/persister/Persister;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsersCache:Lcom/discord/utilities/persister/Persister;
new-instance p1, Lcom/discord/utilities/persister/Persister;
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
2019-11-15 02:21:15 +00:00
const-string v1, "USER_OUTPUT_VOLUMES_V2"
2019-07-24 11:27:29 +00:00
invoke-direct {p1, v1, v0}, Lcom/discord/utilities/persister/Persister;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumesCache:Lcom/discord/utilities/persister/Persister;
new-instance p1, Lcom/discord/utilities/persister/Persister;
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
2019-07-24 11:27:29 +00:00
const-string v1, "VIDEO_ENABLE_HARDWARE_SCALING"
invoke-direct {p1, v1, v0}, Lcom/discord/utilities/persister/Persister;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScalingCache:Lcom/discord/utilities/persister/Persister;
new-instance p1, Lcom/discord/utilities/persister/Persister;
const/4 v0, 0x3
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-string v2, "AUDIO_MODE"
invoke-direct {p1, v2, v1}, Lcom/discord/utilities/persister/Persister;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->audioModeCache:Lcom/discord/utilities/persister/Persister;
2020-01-23 22:00:25 +00:00
sget-object p1, Lcom/discord/stores/VoiceConfigurationCache;->Companion:Lcom/discord/stores/VoiceConfigurationCache$Companion;
invoke-virtual {p1}, Lcom/discord/stores/VoiceConfigurationCache$Companion;->getDEFAULT_VOICE_CONFIG$app_productionDiscordExternalRelease()Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object p1
2019-07-24 11:27:29 +00:00
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2020-02-20 19:33:18 +00:00
invoke-static {}, Lw/q/l;->emptyMap()Ljava/util/Map;
2019-07-24 11:27:29 +00:00
move-result-object p1
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsers:Ljava/util/Map;
2020-02-20 19:33:18 +00:00
invoke-static {}, Lw/q/l;->emptyMap()Ljava/util/Map;
2019-07-24 11:27:29 +00:00
move-result-object p1
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumes:Ljava/util/Map;
iput v0, p0, Lcom/discord/stores/StoreMediaSettings;->audioMode:I
new-instance p1, Lrx/subjects/SerializedSubject;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p1, v0}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
new-instance p1, Lrx/subjects/SerializedSubject;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsers:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p1, v0}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsersSubject:Lrx/subjects/SerializedSubject;
new-instance p1, Lrx/subjects/SerializedSubject;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumes:Ljava/util/Map;
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p1, v0}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumesSubject:Lrx/subjects/SerializedSubject;
new-instance p1, Lrx/subjects/SerializedSubject;
iget-boolean v0, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScaling:Z
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p1, v0}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScalingSubject:Lrx/subjects/SerializedSubject;
new-instance p1, Lrx/subjects/SerializedSubject;
iget v0, p0, Lcom/discord/stores/StoreMediaSettings;->audioMode:I
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p1, v0}, Lrx/subjects/SerializedSubject;-><init>(Lrx/subjects/Subject;)V
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->audioModeSubject:Lrx/subjects/SerializedSubject;
2020-01-23 01:26:29 +00:00
const/4 p1, 0x1
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
iput-boolean p1, p0, Lcom/discord/stores/StoreMediaSettings;->canUseVad:Z
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
return-void
2019-07-24 11:27:29 +00:00
:cond_0
2020-01-23 01:26:29 +00:00
const-string p1, "stream"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 p1, 0x0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
throw p1
.end method
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
.method public static final synthetic access$handleCanUseVad(Lcom/discord/stores/StoreMediaSettings;Z)V
.locals 0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-direct {p0, p1}, Lcom/discord/stores/StoreMediaSettings;->handleCanUseVad(Z)V
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
return-void
.end method
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
.method private final declared-synchronized handleCanUseVad(Z)V
.locals 0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
monitor-enter p0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
:try_start_0
iput-boolean p1, p0, Lcom/discord/stores/StoreMediaSettings;->canUseVad:Z
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-direct {p0}, Lcom/discord/stores/StoreMediaSettings;->updateForceMute()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
2019-07-24 11:27:29 +00:00
.end method
.method private final setAudioMode(I)V
.locals 3
iput p1, p0, Lcom/discord/stores/StoreMediaSettings;->audioMode:I
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->audioModeCache:Lcom/discord/utilities/persister/Persister;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
invoke-virtual {v0, v1, v2}, Lcom/discord/utilities/persister/Persister;->set(Ljava/lang/Object;Z)Ljava/lang/Object;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->audioModeSubject:Lrx/subjects/SerializedSubject;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-virtual {v0, p1}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
return-void
.end method
.method private final setEnableVideoHardwareScaling(Z)V
.locals 5
iput-boolean p1, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScaling:Z
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScalingCache:Lcom/discord/utilities/persister/Persister;
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
const/4 v2, 0x0
const/4 v3, 0x2
const/4 v4, 0x0
invoke-static {v0, v1, v2, v3, v4}, Lcom/discord/utilities/persister/Persister;->set$default(Lcom/discord/utilities/persister/Persister;Ljava/lang/Object;ZILjava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScalingSubject:Lrx/subjects/SerializedSubject;
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object p1
invoke-virtual {v0, p1}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
return-void
.end method
.method private final setMutedUsers(Ljava/util/Map;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsers:Ljava/util/Map;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsersSubject:Lrx/subjects/SerializedSubject;
invoke-virtual {v0, p1}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsersCache:Lcom/discord/utilities/persister/Persister;
const/4 v1, 0x0
const/4 v2, 0x2
const/4 v3, 0x0
invoke-static {v0, p1, v1, v2, v3}, Lcom/discord/utilities/persister/Persister;->set$default(Lcom/discord/utilities/persister/Persister;Ljava/lang/Object;ZILjava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method private final setUserOutputVolumes(Ljava/util/Map;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/Long;",
2019-11-15 02:21:15 +00:00
"Ljava/lang/Float;",
2019-07-24 11:27:29 +00:00
">;)V"
}
.end annotation
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumes:Ljava/util/Map;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumesSubject:Lrx/subjects/SerializedSubject;
invoke-virtual {v0, p1}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumesCache:Lcom/discord/utilities/persister/Persister;
const/4 v1, 0x0
const/4 v2, 0x2
const/4 v3, 0x0
invoke-static {v0, p1, v1, v2, v3}, Lcom/discord/utilities/persister/Persister;->set$default(Lcom/discord/utilities/persister/Persister;Ljava/lang/Object;ZILjava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method private final setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2020-01-23 22:00:25 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
iput-object p1, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
invoke-virtual {v0, p1}, Lrx/subjects/SerializedSubject;->onNext(Ljava/lang/Object;)V
2020-01-23 22:00:25 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationCache:Lcom/discord/stores/VoiceConfigurationCache;
2019-07-24 11:27:29 +00:00
2020-01-23 22:00:25 +00:00
if-eqz v0, :cond_0
2019-07-24 11:27:29 +00:00
2020-01-23 22:00:25 +00:00
invoke-virtual {v0, p1}, Lcom/discord/stores/VoiceConfigurationCache;->write(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2019-07-24 11:27:29 +00:00
2020-01-23 22:00:25 +00:00
return-void
2019-07-24 11:27:29 +00:00
2020-01-23 22:00:25 +00:00
:cond_0
const-string p1, "voiceConfigurationCache"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2020-01-23 22:00:25 +00:00
const/4 p1, 0x0
throw p1
2019-07-24 11:27:29 +00:00
.end method
.method private final updateForceMute()V
2020-01-23 01:26:29 +00:00
.locals 13
2019-07-24 11:27:29 +00:00
iget-boolean v0, p0, Lcom/discord/stores/StoreMediaSettings;->canUseVad:Z
if-nez v0, :cond_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getInputMode()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
move-result-object v0
2020-02-27 22:30:35 +00:00
sget-object v1, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;->VOICE_ACTIVITY:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
2019-07-24 11:27:29 +00:00
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
iput-boolean v0, p0, Lcom/discord/stores/StoreMediaSettings;->forceSelfMute:Z
iget-boolean v0, p0, Lcom/discord/stores/StoreMediaSettings;->forceSelfMute:Z
if-eqz v0, :cond_1
iget-object v1, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v2, 0x1
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
2020-01-23 01:26:29 +00:00
const/16 v11, 0x1fe
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v12, 0x0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-static/range {v1 .. v12}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
:cond_1
return-void
.end method
# virtual methods
.method public final getAudioMode()Lrx/Observable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->audioModeSubject:Lrx/subjects/SerializedSubject;
return-object v0
.end method
2019-12-21 01:41:59 +00:00
.method public final declared-synchronized getAudioModeBlocking()I
.locals 1
monitor-enter p0
:try_start_0
iget v0, p0, Lcom/discord/stores/StoreMediaSettings;->audioMode:I
: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
2019-07-24 11:27:29 +00:00
.method public final getAutomaticGainControl()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$getAutomaticGainControl$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getAutomaticGainControl$1;
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026it.automaticGainControl }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-08-14 23:59:34 +00:00
move-result-object v0
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final getAutomaticVAD()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$getAutomaticVAD$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getAutomaticVAD$1;
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .map { it.automaticVad }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final getEchoCancellation()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$getEchoCancellation$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getEchoCancellation$1;
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026p { it.echoCancellation }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final getEnableVideoHardwareScaling()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;->enableVideoHardwareScalingSubject:Lrx/subjects/SerializedSubject;
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "enableVideoHardwareScali\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final getInputMode()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
sget-object v1, Lcom/discord/stores/StoreMediaSettings$getInputMode$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getInputMode$1;
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .map { it.inputMode }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-08-14 23:59:34 +00:00
move-result-object v0
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final getNoiseSuppression()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$getNoiseSuppression$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getNoiseSuppression$1;
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026p { it.noiseSuppression }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final getOutputVolume()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
2019-11-15 02:21:15 +00:00
"Ljava/lang/Float;",
2019-07-24 11:27:29 +00:00
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
sget-object v1, Lcom/discord/stores/StoreMediaSettings$getOutputVolume$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getOutputVolume$1;
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .map { it.outputVolume }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final getSensitivity()Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable<",
"Ljava/lang/Float;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationSubject:Lrx/subjects/SerializedSubject;
sget-object v1, Lcom/discord/stores/StoreMediaSettings$getSensitivity$1;->INSTANCE:Lcom/discord/stores/StoreMediaSettings$getSensitivity$1;
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .map { it.sensitivity }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final getStream()Lcom/discord/stores/StoreStream;
.locals 1
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->stream:Lcom/discord/stores/StoreStream;
return-object v0
.end method
.method public final getUserMuted(J)Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)",
"Lrx/Observable<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsersSubject:Lrx/subjects/SerializedSubject;
new-instance v1, Lcom/discord/stores/StoreMediaSettings$getUserMuted$1;
invoke-direct {v1, p1, p2}, Lcom/discord/stores/StoreMediaSettings$getUserMuted$1;-><init>(J)V
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-08-14 23:59:34 +00:00
const-string p2, "mutedUsersSubject\n \u2026p { it[userId] ?: false }"
2020-02-20 19:33:18 +00:00
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-08-14 23:59:34 +00:00
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-08-14 23:59:34 +00:00
const-string p2, "mutedUsersSubject\n \u2026().distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object p1
.end method
.method public final getUserOutputVolume(J)Lrx/Observable;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)",
"Lrx/Observable<",
2019-11-15 02:21:15 +00:00
"Ljava/lang/Float;",
2019-07-24 11:27:29 +00:00
">;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumesSubject:Lrx/subjects/SerializedSubject;
new-instance v1, Lcom/discord/stores/StoreMediaSettings$getUserOutputVolume$1;
invoke-direct {v1, p1, p2}, Lcom/discord/stores/StoreMediaSettings$getUserOutputVolume$1;-><init>(J)V
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-08-14 23:59:34 +00:00
const-string p2, "userOutputVolumesSubject\u2026: DEFAULT_OUTPUT_VOLUME }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Lrx/Observable;->a()Lrx/Observable;
2019-08-14 23:59:34 +00:00
move-result-object p1
const-string p2, "userOutputVolumesSubject\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1, p2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object p1
.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
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsersSubject:Lrx/subjects/SerializedSubject;
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "mutedUsersSubject\n \u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +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;",
2019-11-15 02:21:15 +00:00
"Ljava/lang/Float;",
2019-07-24 11:27:29 +00:00
">;>;"
}
.end annotation
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumesSubject:Lrx/subjects/SerializedSubject;
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "userOutputVolumesSubject\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-12-21 01:41:59 +00:00
.method public final declared-synchronized getVideoHardwareScalingBlocking()Z
.locals 1
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScaling:Z
: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
2019-07-24 11:27:29 +00:00
.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;
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +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
2019-12-21 01:41:59 +00:00
.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-01-23 22:00:25 +00:00
.method public final init()V
.locals 9
new-instance v0, Lcom/discord/stores/VoiceConfigurationCache;
invoke-virtual {p0}, Lcom/discord/stores/Store;->getPrefs()Landroid/content/SharedPreferences;
move-result-object v1
invoke-direct {v0, v1}, Lcom/discord/stores/VoiceConfigurationCache;-><init>(Landroid/content/SharedPreferences;)V
iput-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationCache:Lcom/discord/stores/VoiceConfigurationCache;
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfigurationCache:Lcom/discord/stores/VoiceConfigurationCache;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/stores/VoiceConfigurationCache;->read()Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsersCache:Lcom/discord/utilities/persister/Persister;
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map;
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setMutedUsers(Ljava/util/Map;)V
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumesCache:Lcom/discord/utilities/persister/Persister;
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map;
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setUserOutputVolumes(Ljava/util/Map;)V
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScalingCache:Lcom/discord/utilities/persister/Persister;
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setEnableVideoHardwareScaling(Z)V
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->audioModeCache:Lcom/discord/utilities/persister/Persister;
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Number;
invoke-virtual {v0}, Ljava/lang/Number;->intValue()I
move-result v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setAudioMode(I)V
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->stream:Lcom/discord/stores/StoreStream;
invoke-virtual {v0}, Lcom/discord/stores/StoreStream;->getVoiceChannelSelected$app_productionDiscordExternalRelease()Lcom/discord/stores/StoreVoiceChannelSelected;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreVoiceChannelSelected;->getId()Lrx/Observable;
move-result-object v0
new-instance v1, Lcom/discord/stores/StoreMediaSettings$init$1;
invoke-direct {v1, p0}, Lcom/discord/stores/StoreMediaSettings$init$1;-><init>(Lcom/discord/stores/StoreMediaSettings;)V
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->k(Le0/l/i;)Lrx/Observable;
2020-01-23 22:00:25 +00:00
move-result-object v0
2020-03-02 23:12:43 +00:00
sget-object v1, Le/a/b/k;->a:Le/a/b/k;
2020-01-23 22:00:25 +00:00
new-instance v2, Lcom/discord/stores/StoreMediaSettings$init$2;
invoke-direct {v2, p0}, Lcom/discord/stores/StoreMediaSettings$init$2;-><init>(Lcom/discord/stores/StoreMediaSettings;)V
const-class v3, Lcom/discord/stores/StoreMediaSettings;
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/16 v8, 0x3c
2020-03-02 23:12:43 +00:00
invoke-static/range {v1 .. v8}, Le/a/b/k;->a(Le/a/b/k;Lkotlin/jvm/functions/Function1;Ljava/lang/Class;Lrx/functions/Action1;Lkotlin/jvm/functions/Function1;Landroid/content/Context;Lkotlin/jvm/functions/Function0;I)Lrx/Observable$c;
2020-01-23 22:00:25 +00:00
move-result-object v1
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
return-void
:cond_0
const-string v0, "voiceConfigurationCache"
2020-02-20 19:33:18 +00:00
invoke-static {v0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2020-01-23 22:00:25 +00:00
const/4 v0, 0x0
throw v0
.end method
2019-07-24 11:27:29 +00:00
.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-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .map { it.isDeafened }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +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-02-20 19:33:18 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .map { it.isMuted }"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-08-14 23:59:34 +00:00
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0}, Lrx/Observable;->a()Lrx/Observable;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-08-14 23:59:34 +00:00
const-string v1, "voiceConfigurationSubjec\u2026 .distinctUntilChanged()"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-11-15 02:21:15 +00:00
.method public final declared-synchronized setOutputVolume(F)V
2020-01-23 01:26:29 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v1, 0x0
const/4 v2, 0x0
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-01-23 01:26:29 +00:00
const/16 v10, 0xff
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
move v9, p1
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object p1
invoke-direct {p0, p1}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized setSelfDeafen(Z)V
2020-01-23 01:26:29 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v1, 0x0
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
2020-01-23 01:26:29 +00:00
const/16 v10, 0x1fd
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
move v2, p1
2020-01-23 01:26:29 +00:00
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object p1
invoke-direct {p0, p1}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized setSensitivity(F)V
2020-01-23 01:26:29 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v1, 0x0
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
2020-01-23 01:26:29 +00:00
const/16 v10, 0x1bf
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
move v7, p1
2020-01-23 01:26:29 +00:00
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object p1
invoke-direct {p0, p1}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-11-15 02:21:15 +00:00
.method public final declared-synchronized setUserOutputVolume(JF)V
2019-07-24 11:27:29 +00:00
.locals 2
monitor-enter p0
:try_start_0
new-instance v0, Ljava/util/HashMap;
iget-object v1, p0, Lcom/discord/stores/StoreMediaSettings;->userOutputVolumes:Ljava/util/Map;
invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
2019-11-15 02:21:15 +00:00
invoke-static {p3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
2019-07-24 11:27:29 +00:00
move-result-object p2
invoke-virtual {v0, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setUserOutputVolumes(Ljava/util/Map;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized setVoiceInputMode(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;)V
2020-01-23 01:26:29 +00:00
.locals 13
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
const-string v0, "inputMode"
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
iget-object v1, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v2, 0x0
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 v10, 0x0
2020-01-23 01:26:29 +00:00
const/16 v11, 0x17f
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v12, 0x0
2019-07-24 11:27:29 +00:00
move-object v9, p1
2020-01-23 01:26:29 +00:00
invoke-static/range {v1 .. v12}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object p1
invoke-direct {p0, p1}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
invoke-direct {p0}, Lcom/discord/stores/StoreMediaSettings;->updateForceMute()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
2019-12-06 03:29:40 +00:00
:cond_0
:try_start_1
2020-02-20 19:33:18 +00:00
invoke-static {v0}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const/4 p1, 0x0
throw p1
2019-07-24 11:27:29 +00:00
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized toggleAutomaticGainControl()V
2020-01-23 01:26:29 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v1, 0x0
const/4 v2, 0x0
const/4 v3, 0x0
iget-object v4, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v4}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticGainControl()Z
move-result v4
if-nez v4, :cond_0
const/4 v4, 0x1
goto :goto_0
:cond_0
const/4 v4, 0x0
:goto_0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
2020-01-23 01:26:29 +00:00
const/16 v10, 0x1f7
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)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 toggleAutomaticVAD()V
2020-01-23 01:26:29 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v1, 0x0
const/4 v2, 0x0
iget-object v3, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v3}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticVad()Z
move-result v3
if-nez v3, :cond_0
const/4 v3, 0x1
goto :goto_0
:cond_0
const/4 v3, 0x0
:goto_0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
2020-01-23 01:26:29 +00:00
const/16 v10, 0x1fb
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)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 toggleEchoCancellation()V
2020-01-23 01:26:29 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v1, 0x0
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
iget-object v5, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v5}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getEchoCancellation()Z
move-result v5
if-nez v5, :cond_0
const/4 v5, 0x1
goto :goto_0
:cond_0
const/4 v5, 0x0
:goto_0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
2020-01-23 01:26:29 +00:00
const/16 v10, 0x1ef
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)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 toggleEnableVideoHardwareScaling()V
.locals 1
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lcom/discord/stores/StoreMediaSettings;->enableVideoHardwareScaling:Z
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setEnableVideoHardwareScaling(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 toggleNoiseSuppression()V
2020-01-23 01:26:29 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v1, 0x0
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
iget-object v6, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v6}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseSuppression()Z
move-result v6
if-nez v6, :cond_0
const/4 v6, 0x1
goto :goto_0
:cond_0
const/4 v6, 0x0
:goto_0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
2020-01-23 01:26:29 +00:00
const/16 v10, 0x1df
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)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 toggleSelfDeafened()V
2020-01-23 01:26:29 +00:00
.locals 12
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
const/4 v1, 0x0
iget-object v2, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
invoke-virtual {v2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isDeafened()Z
move-result v2
if-nez v2, :cond_0
const/4 v2, 0x1
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
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
2020-01-23 01:26:29 +00:00
const/16 v10, 0x1fd
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
invoke-static/range {v0 .. v11}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object v0
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)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
2020-01-23 01:26:29 +00:00
.locals 15
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
2020-01-23 01:26:29 +00:00
iget-boolean v0, p0, Lcom/discord/stores/StoreMediaSettings;->forceSelfMute:Z
2019-07-24 11:27:29 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-01-23 01:26:29 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
monitor-exit p0
2020-01-23 01:26:29 +00:00
return v1
2019-07-24 11:27:29 +00:00
:cond_0
:try_start_1
2020-01-23 01:26:29 +00:00
iget-object v2, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
2020-01-23 01:26:29 +00:00
iget-object v0, p0, Lcom/discord/stores/StoreMediaSettings;->voiceConfiguration:Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isMuted()Z
move-result v0
2020-01-23 01:26:29 +00:00
const/4 v14, 0x1
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_1
2020-01-23 01:26:29 +00:00
const/4 v3, 0x1
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_1
2020-01-23 01:26:29 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
:goto_0
2020-01-23 01:26:29 +00:00
const/4 v4, 0x0
2019-07-24 11:27:29 +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
const/4 v11, 0x0
2020-01-23 01:26:29 +00:00
const/16 v12, 0x1fe
2019-07-24 11:27:29 +00:00
const/4 v13, 0x0
2020-01-23 01:26:29 +00:00
invoke-static/range {v2 .. v13}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->copy$default(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;ZZZZZZFLcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;FILjava/lang/Object;)Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;
2019-07-24 11:27:29 +00:00
move-result-object v0
2020-01-23 01:26:29 +00:00
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setVoiceConfiguration(Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;)V
2019-07-24 11:27:29 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
2020-01-23 01:26:29 +00:00
return v14
2019-07-24 11:27:29 +00:00
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized toggleUserMuted(J)V
2019-12-06 03:29:40 +00:00
.locals 4
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
new-instance v0, Ljava/util/HashMap;
iget-object v1, p0, Lcom/discord/stores/StoreMediaSettings;->mutedUsers:Ljava/util/Map;
invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Boolean;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
:goto_0
const-string v3, "get(userId) ?: false"
2020-02-20 19:33:18 +00:00
invoke-static {v1, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v1
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
if-nez v1, :cond_1
2019-12-06 03:29:40 +00:00
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
2019-07-24 11:27:29 +00:00
move-result-object p2
invoke-virtual {v0, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invoke-direct {p0, v0}, Lcom/discord/stores/StoreMediaSettings;->setMutedUsers(Ljava/util/Map;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized updateAudioMode(I)V
.locals 0
monitor-enter p0
:try_start_0
invoke-direct {p0, p1}, Lcom/discord/stores/StoreMediaSettings;->setAudioMode(I)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method