2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lcom/discord/rtcconnection/mediaengine/a/a;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "MediaEngineConnectionLegacy.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/rtcconnection/mediaengine/a/a$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field private static final TAG:Ljava/lang/String;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field public static final wl:Lcom/discord/rtcconnection/mediaengine/a/a$a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final executorService:Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
.field private final logger:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field private final wg:Ljava/util/ArrayList;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayList<",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$b;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field private wh:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field private final wi:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/HashMap<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field private final wj:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/HashMap<",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field private final wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:32:01 +00:00
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/mediaengine/a/a$a;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/rtcconnection/mediaengine/a/a$a;-><init>(B)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sput-object v0, Lcom/discord/rtcconnection/mediaengine/a/a;->wl:Lcom/discord/rtcconnection/mediaengine/a/a$a;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-class v0, Lcom/discord/rtcconnection/mediaengine/a/a;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/rtcconnection/mediaengine/a/a;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Lcom/hammerandchisel/libdiscord/Discord;Ljava/util/concurrent/ExecutorService;Lcom/discord/utilities/logging/Logger;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "voiceEngineLegacy"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "executorService"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "logger"
|
|
|
|
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->executorService:Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->logger:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wg:Ljava/util/ArrayList;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object p1, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;->vH:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wh:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wi:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wj:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/mediaengine/a/a;)Lcom/discord/utilities/logging/Logger;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->logger:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/mediaengine/a/a;Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->executorService:Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/mediaengine/a/b;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/rtcconnection/mediaengine/a/b;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wh:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/mediaengine/a/a$c;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/rtcconnection/mediaengine/a/a$c;-><init>(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;)V
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/rtcconnection/mediaengine/a/a;->e(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/mediaengine/a/a;JILjava/lang/String;)V
|
|
|
|
.locals 9
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wj:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/rtcconnection/mediaengine/a/a$j;
|
|
|
|
|
|
|
|
move-object v3, v0
|
|
|
|
|
|
|
|
move-object v4, p0
|
|
|
|
|
|
|
|
move-wide v5, p1
|
|
|
|
|
|
|
|
move-object v7, p4
|
|
|
|
|
|
|
|
move v8, p3
|
|
|
|
|
|
|
|
invoke-direct/range {v3 .. v8}, Lcom/discord/rtcconnection/mediaengine/a/a$j;-><init>(Lcom/discord/rtcconnection/mediaengine/a/a;JLjava/lang/String;I)V
|
|
|
|
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/rtcconnection/mediaengine/a/a;->e(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/mediaengine/a/a;JZ)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wi:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
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 v0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v1, "audioSsrcs[userId] ?: 0"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/rtcconnection/mediaengine/a/a$i;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1, p2, v0, p3}, Lcom/discord/rtcconnection/mediaengine/a/a$i;-><init>(JIZ)V
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
invoke-direct {p0, v1}, Lcom/discord/rtcconnection/mediaengine/a/a;->e(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic a(Lcom/discord/rtcconnection/mediaengine/a/a;Lcom/hammerandchisel/libdiscord/Discord$ConnectionInfo;Ljava/lang/String;)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->logger:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/rtcconnection/mediaengine/a/a;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v2, "TAG"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
move-result-object v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v3, "handleConnection(). errorMessage: "
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/utilities/logging/Logger;->i$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
move-object v0, p2
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
iget-object p2, p1, Lcom/hammerandchisel/libdiscord/Discord$ConnectionInfo;->localAddress:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v0, "connectionInfo.localAddress"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iget v0, p1, Lcom/hammerandchisel/libdiscord/Discord$ConnectionInfo;->localPort:I
|
|
|
|
|
|
|
|
iget-object p1, p1, Lcom/hammerandchisel/libdiscord/Discord$ConnectionInfo;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v1, "connectionInfo.protocol"
|
|
|
|
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v1, "(this as java.lang.String).toUpperCase()"
|
|
|
|
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo$a;->valueOf(Ljava/lang/String;)Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo$a;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo;
|
|
|
|
|
|
|
|
invoke-direct {v1, p2, v0, p1}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo;-><init>(Ljava/lang/String;ILcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo$a;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object p1, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;->vJ:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/rtcconnection/mediaengine/a/a;->a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;)V
|
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/rtcconnection/mediaengine/a/a$f;
|
|
|
|
|
|
|
|
invoke-direct {p1, v1}, Lcom/discord/rtcconnection/mediaengine/a/a$f;-><init>(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$TransportInfo;)V
|
|
|
|
|
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/rtcconnection/mediaengine/a/a;->e(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
|
|
|
|
const-string p1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object p1, Lcom/discord/rtcconnection/mediaengine/a/a$g;->wo:Lcom/discord/rtcconnection/mediaengine/a/a$g;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/rtcconnection/mediaengine/a/a;->e(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p1, Lcom/discord/rtcconnection/mediaengine/a/a$h;
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lcom/discord/rtcconnection/mediaengine/a/a$h;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
check-cast p1, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/rtcconnection/mediaengine/a/a;->e(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getTAG$cp()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/rtcconnection/mediaengine/a/a;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic b(Lcom/discord/rtcconnection/mediaengine/a/a;)Ljava/util/HashMap;
|
|
|
|
.locals 0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object p0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wi:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final e(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.locals 9
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$b;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wg:Ljava/util/ArrayList;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/Iterable;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$b;
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-interface {p1, v1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->logger:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/discord/rtcconnection/mediaengine/a/a;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v4, "TAG"
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
move-object v5, v1
|
|
|
|
|
|
|
|
check-cast v5, Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/16 v7, 0x8
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v4, "Error in listener"
|
|
|
|
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
.method private static x(I)I
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-lez p0, :cond_0
|
|
|
|
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
|
|
|
|
return p0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
.method public static final synthetic y(I)I
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
invoke-static {p0}, Lcom/discord/rtcconnection/mediaengine/a/a;->x(I)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(JI)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
int-to-float p3, p3
|
|
|
|
|
|
|
|
const/high16 v1, 0x42c80000 # 100.0f
|
|
|
|
|
|
|
|
div-float/2addr p3, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lcom/hammerandchisel/libdiscord/Discord;->setUserPlayoutVolume(JF)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(JILjava/lang/Integer;)V
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
if-nez p4, :cond_0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object p4, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wj:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p4, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p4
|
|
|
|
|
|
|
|
check-cast p4, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p4}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result p4
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p4, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wi:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eq v1, p3, :cond_3
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v3, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wj:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
if-nez v3, :cond_4
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eq v3, p4, :cond_5
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
|
|
|
|
:cond_6
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
invoke-static {p4}, Lcom/discord/rtcconnection/mediaengine/a/a;->x(I)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/high16 v8, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
move-wide v2, p1
|
|
|
|
|
|
|
|
move v4, p3
|
|
|
|
|
|
|
|
move v5, p4
|
|
|
|
|
|
|
|
invoke-virtual/range {v1 .. v8}, Lcom/hammerandchisel/libdiscord/Discord;->connectUser(JIIIZF)V
|
|
|
|
|
|
|
|
:cond_7
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wi:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-interface {v0, v1, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object p3, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wj:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast p3, Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-interface {p3, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(JLcom/discord/rtcconnection/mediaengine/MediaEngine$a;)V
|
|
|
|
.locals 10
|
|
|
|
|
|
|
|
const-string v0, "connectionOptions"
|
|
|
|
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object v0, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;->vI:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/rtcconnection/mediaengine/a/a;->a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wi:Ljava/util/HashMap;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
iget v2, p3, Lcom/discord/rtcconnection/mediaengine/MediaEngine$a;->ssrc:I
|
|
|
|
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v3, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget v4, p3, Lcom/discord/rtcconnection/mediaengine/MediaEngine$a;->ssrc:I
|
|
|
|
|
|
|
|
iget-object v7, p3, Lcom/discord/rtcconnection/mediaengine/MediaEngine$a;->address:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget v8, p3, Lcom/discord/rtcconnection/mediaengine/MediaEngine$a;->port:I
|
|
|
|
|
|
|
|
new-instance p3, Lcom/discord/rtcconnection/mediaengine/a/a$b;
|
|
|
|
|
|
|
|
invoke-direct {p3, p0}, Lcom/discord/rtcconnection/mediaengine/a/a$b;-><init>(Lcom/discord/rtcconnection/mediaengine/a/a;)V
|
|
|
|
|
|
|
|
move-object v9, p3
|
|
|
|
|
|
|
|
check-cast v9, Lcom/hammerandchisel/libdiscord/Discord$ConnectToServerCallback;
|
|
|
|
|
|
|
|
move-wide v5, p1
|
|
|
|
|
|
|
|
invoke-virtual/range {v3 .. v9}, Lcom/hammerandchisel/libdiscord/Discord;->connectToServer(IJLjava/lang/String;ILcom/hammerandchisel/libdiscord/Discord$ConnectToServerCallback;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance p2, Lcom/discord/rtcconnection/mediaengine/a/a$k;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/rtcconnection/mediaengine/a/a$k;-><init>(Lcom/discord/rtcconnection/mediaengine/a/a;)V
|
|
|
|
|
|
|
|
check-cast p2, Lcom/hammerandchisel/libdiscord/Discord$UserSpeakingStatusChangedCallback;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lcom/hammerandchisel/libdiscord/Discord;->setUserSpeakingStatusChangedCallback(Lcom/hammerandchisel/libdiscord/Discord$UserSpeakingStatusChangedCallback;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance p2, Lcom/discord/rtcconnection/mediaengine/a/a$l;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/rtcconnection/mediaengine/a/a$l;-><init>(Lcom/discord/rtcconnection/mediaengine/a/a;)V
|
|
|
|
|
|
|
|
check-cast p2, Lcom/hammerandchisel/libdiscord/Discord$OnVideoCallback;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lcom/hammerandchisel/libdiscord/Discord;->setOnVideoCallback(Lcom/hammerandchisel/libdiscord/Discord$OnVideoCallback;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(JZ)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lcom/hammerandchisel/libdiscord/Discord;->muteUser(JZ)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "inputMode"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "inputModeOptions"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget v1, p2, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;->vX:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->setVADLeadingFramesToBuffer(I)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget v1, p2, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;->vY:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->setVADTrailingFramesToSend(I)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget v1, p2, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;->vW:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->setVADTriggerThreshold(F)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-boolean p2, p2, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;->vZ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
const/4 p2, 0x3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p2, -0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, p2}, Lcom/hammerandchisel/libdiscord/Discord;->setVADAutoThreshold(I)V
|
|
|
|
|
|
|
|
iget p1, p1, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;->numeral:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setAudioInputMode(I)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->enableBuiltInAEC(Z)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->enableForwardErrorCorrection(Z)V
|
|
|
|
|
|
|
|
const p1, 0x3e99999a # 0.3f
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setExpectedPacketLossRate(F)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$b;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "listener"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wg:Ljava/util/ArrayList;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wh:Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$b;->onConnectionStateChange(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$ConnectionState;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Ljava/lang/String;[I)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "mode"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "secretKey"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v1, Lcom/hammerandchisel/libdiscord/Discord$EncryptionSettings;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Lcom/hammerandchisel/libdiscord/Discord$EncryptionSettings;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, v1, Lcom/hammerandchisel/libdiscord/Discord$EncryptionSettings;->mode:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object p2, v1, Lcom/hammerandchisel/libdiscord/Discord$EncryptionSettings;->secretKey:[I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->setEncryptionSettings(Lcom/hammerandchisel/libdiscord/Discord$EncryptionSettings;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$b;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "listener"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wg:Ljava/util/ArrayList;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final d(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Lco/discord/media_engine/Stats;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "onStats"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/rtcconnection/mediaengine/a/a$e;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/rtcconnection/mediaengine/a/a$e;-><init>(Lcom/discord/rtcconnection/mediaengine/a/a;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
check-cast v1, Lcom/hammerandchisel/libdiscord/Discord$GetStatsCallback;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->getStats(Lcom/hammerandchisel/libdiscord/Discord$GetStatsCallback;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final destroy()V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->logger:Lcom/discord/utilities/logging/Logger;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/rtcconnection/mediaengine/a/a;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v2, "TAG"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v2, "destroy(). Disconnecting from server"
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/discord/utilities/logging/Logger;->i$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/hammerandchisel/libdiscord/Discord;->disconnectFromServer()V
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object v0, Lcom/discord/rtcconnection/mediaengine/a/a$d;->wm:Lcom/discord/rtcconnection/mediaengine/a/a$d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
check-cast v0, Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/discord/rtcconnection/mediaengine/a/a;->e(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public final r(Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->muteLocalUser(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public final s(Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setEchoCancellation(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public final setPttActive(Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setPTTActive(Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public final setSelfDeafen(Z)V
|
|
|
|
.locals 1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->deafenLocalUser(Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public final t(Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 p1, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 p1, -0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setNoiseSuppression(I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.method public final u(Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/rtcconnection/mediaengine/a/a;->wk:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setAutomaticGainControl(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|