2020-04-11 15:34:05 +00:00
|
|
|
.class public final Lk;
|
2019-12-21 01:41:59 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "MediaEngineLegacy.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2020-03-27 22:23:51 +00:00
|
|
|
.implements Lcom/discord/rtcconnection/mediaengine/MediaEngine;
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final i:Ljava/lang/String;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-03-27 22:23:51 +00:00
|
|
|
.field public final a:Ljava/util/ArrayList;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayList<",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public b:Lcom/hammerandchisel/libdiscord/Discord;
|
|
|
|
|
|
|
|
.field public final c:Ljava/util/ArrayList;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayList<",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngine$b;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public d:Ljava/util/List;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/List<",
|
2020-04-11 15:34:05 +00:00
|
|
|
"Lf/a/f/l/a;",
|
2020-03-27 22:23:51 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final e:Landroid/content/Context;
|
|
|
|
|
|
|
|
.field public final f:Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
|
|
.field public final g:Lcom/discord/rtcconnection/mediaengine/MediaEngine$OpenSLESConfig;
|
|
|
|
|
|
|
|
.field public final h:Lcom/discord/utilities/logging/Logger;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-03-27 22:23:51 +00:00
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
const-class v0, Lk;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "MediaEngineLegacy::class.java.simpleName"
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sput-object v0, Lk;->i:Ljava/lang/String;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Ljava/util/concurrent/ExecutorService;Lcom/discord/rtcconnection/mediaengine/MediaEngine$OpenSLESConfig;Lcom/discord/utilities/logging/Logger;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
|
|
|
|
if-eqz p4, :cond_0
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object p1, p0, Lk;->e:Landroid/content/Context;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object p2, p0, Lk;->f:Ljava/util/concurrent/ExecutorService;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object p3, p0, Lk;->g:Lcom/discord/rtcconnection/mediaengine/MediaEngine$OpenSLESConfig;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object p4, p0, Lk;->h:Lcom/discord/utilities/logging/Logger;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object p1, p0, Lk;->a:Ljava/util/ArrayList;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object p1, p0, Lk;->c:Ljava/util/ArrayList;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "logger"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "openSLESConfig"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "singleThreadExecutorService"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "context"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
.method public static final synthetic a(Lk;)Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object p0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
.method public static final synthetic a(Lk;[Ljava/lang/String;)Ljava/util/List;
|
2020-03-27 22:23:51 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {p0, p1}, Lk;->a([Ljava/lang/String;)Ljava/util/List;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
.method public static final synthetic a(Lk;Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future;
|
2020-03-27 22:23:51 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object p0, p0, Lk;->f:Ljava/util/concurrent/ExecutorService;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v0, Lp;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v0, p1}, Lp;-><init>(Lkotlin/jvm/functions/Function0;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-object p1, v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast p1, Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
invoke-interface {p0, p1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
.method public static final synthetic a(Lk;Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
.locals 2
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->setLocalVoiceLevelChangedCallback(Lcom/hammerandchisel/libdiscord/Discord$LocalVoiceLevelChangedCallback;)V
|
|
|
|
|
|
|
|
:cond_0
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object p0, p0, Lk;->a:Ljava/util/ArrayList;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-03-27 22:23:51 +00:00
|
|
|
.method public a(JLcom/discord/rtcconnection/mediaengine/MediaEngine$a;ZLkotlin/jvm/functions/Function1;)Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
|
|
|
.locals 17
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(J",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngine$a;",
|
|
|
|
"Z",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Ljava/lang/Exception;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object/from16 v6, p0
|
|
|
|
|
|
|
|
move-object/from16 v15, p3
|
|
|
|
|
|
|
|
move-object/from16 v0, p5
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
if-eqz v15, :cond_6
|
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v1, v6, Lk;->d:Ljava/util/List;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v2, "connect called on unprepared media engine."
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
return-object v7
|
|
|
|
|
|
|
|
:cond_1
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v10, v6, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v10, :cond_3
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, v6, Lk;->h:Lcom/discord/utilities/logging/Logger;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v1, Lk;->i:Ljava/lang/String;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v3, "Connecting with options: "
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v8, Lk$a;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-object v0, v8
|
|
|
|
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
|
|
|
|
move-object/from16 v2, p3
|
|
|
|
|
|
|
|
move/from16 v3, p4
|
|
|
|
|
|
|
|
move-wide/from16 v4, p1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct/range {v0 .. v5}, Lk$a;-><init>(Lk;Lcom/discord/rtcconnection/mediaengine/MediaEngine$a;ZJ)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v0, Lf/a/f/l/b/a;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v1, v6, Lk;->f:Ljava/util/concurrent/ExecutorService;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v9, v6, Lk;->h:Lcom/discord/utilities/logging/Logger;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v11, v6, Lk;->d:Ljava/util/List;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v11, :cond_2
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v8}, Lf/n/a/j/a;->listOf(Ljava/lang/Object;)Ljava/util/List;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-result-object v16
|
|
|
|
|
|
|
|
move-object v7, v0
|
|
|
|
|
|
|
|
move-object v8, v1
|
|
|
|
|
|
|
|
move/from16 v12, p4
|
|
|
|
|
|
|
|
move-wide/from16 v13, p1
|
|
|
|
|
|
|
|
move-object/from16 v15, p3
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct/range {v7 .. v16}, Lf/a/f/l/b/a;-><init>(Ljava/util/concurrent/ExecutorService;Lcom/discord/utilities/logging/Logger;Lcom/hammerandchisel/libdiscord/Discord;Ljava/util/List;ZJLcom/discord/rtcconnection/mediaengine/MediaEngine$a;Ljava/util/List;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string v0, "supportedVideoCodecs"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0}, Lz/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw v7
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move-object v0, v7
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v1, v6, Lk;->a:Ljava/util/ArrayList;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v1, Lk$b;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v1, v0}, Lk$b;-><init>(Lf/a/f/l/b/a;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v6, v1}, Lk;->c(Lkotlin/jvm/functions/Function1;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const-string v0, "onFailure"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw v7
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const-string v0, "options"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw v7
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a([Ljava/lang/String;)Ljava/util/List;
|
|
|
|
.locals 10
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"([",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
")",
|
|
|
|
"Ljava/util/List<",
|
2020-04-11 15:34:05 +00:00
|
|
|
"Lf/a/f/l/a;",
|
2020-03-27 22:23:51 +00:00
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
array-length v1, p1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
array-length v1, p1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v3, v1, :cond_1
|
|
|
|
|
|
|
|
aget-object v4, p1, v3
|
|
|
|
|
|
|
|
sget-object v5, Ljava/util/Locale;->ROOT:Ljava/util/Locale;
|
|
|
|
|
|
|
|
const-string v6, "Locale.ROOT"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v5, v6}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v5, "(this as java.lang.String).toUpperCase(locale)"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v4, v5}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance p1, Lz/l;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const-string v0, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {p1, v0}, Lz/l;-><init>(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_1
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance p1, Lk$c;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {p1}, Lk$c;-><init>()V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0, p1}, Lz/q/l;->sortedWith(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/List;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
const/16 v1, 0xa
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1, v1}, Lf/n/a/j/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
add-int/lit8 v9, v2, 0x1
|
|
|
|
|
|
|
|
if-ltz v2, :cond_2
|
|
|
|
|
|
|
|
move-object v4, v1
|
|
|
|
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
|
|
|
|
mul-int/lit8 v2, v2, 0x2
|
|
|
|
|
|
|
|
add-int/lit8 v7, v2, 0x65
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v1, Lf/a/f/l/a;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
add-int/lit8 v2, v7, 0x1
|
|
|
|
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
const-string v6, "video"
|
|
|
|
|
|
|
|
move-object v3, v1
|
|
|
|
|
|
|
|
move v5, v9
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct/range {v3 .. v8}, Lf/a/f/l/a;-><init>(Ljava/lang/String;ILjava/lang/String;ILjava/lang/Integer;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move v2, v9
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {}, Lf/n/a/j/a;->throwIndexOverflow()V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-04-08 16:24:01 +00:00
|
|
|
.method public a()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->d:Ljava/util/List;
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v1, Lh0/m/e/j;
|
2020-04-08 16:24:01 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v1, v0}, Lh0/m/e/j;-><init>(Ljava/lang/Object;)V
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
const-string v0, "Observable.just(Unit)"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v1, v0}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_1
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {p0}, Lk;->e()V
|
2020-04-08 16:24:01 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "Failed to initialize native media engine"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v0}, Lrx/Observable;->a(Ljava/lang/Throwable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Observable.error(Illegal\u2026ze native media engine\"))"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_2
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v0, Ln;
|
2020-04-08 16:24:01 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v0, p0}, Ln;-><init>(Lk;)V
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
sget-object v1, Lrx/Emitter$BackpressureMode;->d:Lrx/Emitter$BackpressureMode;
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lrx/Observable;->a(Lrx/functions/Action1;Lrx/Emitter$BackpressureMode;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Observable.create({ emit\u2026er.BackpressureMode.NONE)"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-04-08 16:24:01 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v1, Lk$e;
|
2020-04-08 16:24:01 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v1, p0}, Lk$e;-><init>(Lk;)V
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->b(Lrx/functions/Action1;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v1, Lk$f;->d:Lk$f;
|
2020-04-08 16:24:01 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->f(Lh0/l/i;)Lrx/Observable;
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "getSupportedVideoCodecs(\u2026s }\n .map { Unit }"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-04-08 16:24:01 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
.method public a(F)V
|
2019-12-21 01:41:59 +00:00
|
|
|
.locals 3
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
const/high16 v1, 0x43960000 # 300.0f
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
const/4 v2, 0x0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {v2, p1}, Ljava/lang/Math;->max(FF)F
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
move-result p1
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {v1, p1}, Ljava/lang/Math;->min(FF)F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
const/high16 v1, 0x42c80000 # 100.0f
|
|
|
|
|
|
|
|
div-float/2addr p1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setSpeakerVolume(F)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
.method public a(I)V
|
|
|
|
.locals 1
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setVideoInputDevice(I)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
:cond_0
|
2019-12-21 01:41:59 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
.method public a(Lcom/discord/rtcconnection/mediaengine/MediaEngine$b;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->c:Ljava/util/ArrayList;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "listener"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-[",
|
|
|
|
"Lco/discord/media_engine/VideoInputDeviceDescription;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {p0}, Lk;->e()V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v1, Lo;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v1, p1}, Lo;-><init>(Lkotlin/jvm/functions/Function1;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->getVideoInputDevices(Lcom/hammerandchisel/libdiscord/Discord$GetVideoInputDevicesCallback;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "devicesCallback"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(Z)V
|
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setEchoCancellation(Z)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-04-08 16:24:01 +00:00
|
|
|
.method public b()Lcom/hammerandchisel/libdiscord/Discord;
|
|
|
|
.locals 1
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public b(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngine$LocalVoiceStatus;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {p0}, Lk;->e()V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v1, Lk$g;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v1, p1}, Lk$g;-><init>(Lkotlin/jvm/functions/Function1;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->setLocalVoiceLevelChangedCallback(Lcom/hammerandchisel/libdiscord/Discord$LocalVoiceLevelChangedCallback;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object p1, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/hammerandchisel/libdiscord/Discord;->setLocalVoiceLevelChangedCallback(Lcom/hammerandchisel/libdiscord/Discord$LocalVoiceLevelChangedCallback;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public b(Z)V
|
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setNoiseSuppression(Z)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public c()Lrx/Observable;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngine$AudioInfo;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v0, Lk$d;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v0, p0}, Lk$d;-><init>(Lk;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
sget-object v1, Lrx/Emitter$BackpressureMode;->h:Lrx/Emitter$BackpressureMode;
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lrx/Observable;->a(Lrx/functions/Action1;Lrx/Emitter$BackpressureMode;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "Observable.create({ emit\u2026.BackpressureMode.LATEST)"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final c(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.locals 9
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"-",
|
|
|
|
"Lcom/discord/rtcconnection/mediaengine/MediaEngine$b;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->c:Ljava/util/ArrayList;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
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/MediaEngine$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 v5
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v2, p0, Lk;->h:Lcom/discord/utilities/logging/Logger;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v3, Lk;->i:Ljava/lang/String;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/16 v7, 0x8
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const-string v4, "Error in listener"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
.method public c(Z)V
|
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setAutomaticGainControl(Z)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public d()Ljava/util/concurrent/ExecutorService;
|
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->f:Ljava/util/concurrent/ExecutorService;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final e()V
|
|
|
|
.locals 8
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v1, p0, Lk;->h:Lcom/discord/utilities/logging/Logger;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v2, Lk;->i:Ljava/lang/String;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const-string v0, "initializing voice engine. OpenSL ES: "
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v3, p0, Lk;->g:Lcom/discord/rtcconnection/mediaengine/MediaEngine$OpenSLESConfig;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x4
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, 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
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->g:Lcom/discord/rtcconnection/mediaengine/MediaEngine$OpenSLESConfig;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v1, Lj;->a:[I
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
aget v0, v1, v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v2, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {v1}, Lorg/webrtc/voiceengine/WebRtcAudioManager;->setBlacklistDeviceForOpenSLESUsage(Z)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0}, Lorg/webrtc/voiceengine/WebRtcAudioManager;->setBlacklistDeviceForOpenSLESUsage(Z)V
|
|
|
|
|
|
|
|
:goto_0
|
2020-04-11 15:34:05 +00:00
|
|
|
new-instance v0, Lk$h;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-direct {v0, p0}, Lk$h;-><init>(Lk;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
sput-object v0, Lorg/webrtc/Logging;->externalReporter:Lorg/webrtc/Logging$ExternalReporter;
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
new-instance v0, Lcom/hammerandchisel/libdiscord/Discord;
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v1, p0, Lk;->e:Landroid/content/Context;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;-><init>(Landroid/content/Context;)V
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/ExceptionInInitializerError; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v1, p0, Lk;->h:Lcom/discord/utilities/logging/Logger;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v2, Lk;->i:Ljava/lang/String;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/16 v6, 0x8
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const-string v3, "Unable to initialize voice engine, new error discovered"
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v7}, 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_1
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v1, p0, Lk;->h:Lcom/discord/utilities/logging/Logger;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v2, Lk;->i:Ljava/lang/String;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/16 v6, 0x8
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const-string v3, "Unable to initialize voice engine."
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v7}, 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_1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v1, p0, Lk;->h:Lcom/discord/utilities/logging/Logger;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v2, Lk;->i:Ljava/lang/String;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/16 v6, 0x8
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const-string v3, "Unable to initialize voice engine."
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v7}, 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_1
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->b:Lcom/hammerandchisel/libdiscord/Discord;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object v0, Lk$i;->d:Lk$i;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {p0, v0}, Lk;->c(Lkotlin/jvm/functions/Function1;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getConnections()Ljava/util/List;
|
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Lk;->a:Ljava/util/ArrayList;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|