.class public final Li; .super Ljava/lang/Object; .source "MediaEngineLegacy.kt" # interfaces .implements Lcom/discord/rtcconnection/mediaengine/MediaEngine; # static fields .field public static final i:Ljava/lang/String; # instance fields .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<", "Le/a/e/p/a;", ">;" } .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; # direct methods .method public static constructor ()V .locals 2 const-class v0, Li; invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String; move-result-object v0 const-string v1, "MediaEngineLegacy::class.java.simpleName" invoke-static {v0, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V sput-object v0, Li;->i:Ljava/lang/String; return-void .end method .method public constructor (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 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Li;->e:Landroid/content/Context; iput-object p2, p0, Li;->f:Ljava/util/concurrent/ExecutorService; iput-object p3, p0, Li;->g:Lcom/discord/rtcconnection/mediaengine/MediaEngine$OpenSLESConfig; iput-object p4, p0, Li;->h:Lcom/discord/utilities/logging/Logger; new-instance p1, Ljava/util/ArrayList; invoke-direct {p1}, Ljava/util/ArrayList;->()V iput-object p1, p0, Li;->a:Ljava/util/ArrayList; new-instance p1, Ljava/util/ArrayList; invoke-direct {p1}, Ljava/util/ArrayList;->()V iput-object p1, p0, Li;->c:Ljava/util/ArrayList; return-void :cond_0 const-string p1, "logger" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V throw v0 :cond_1 const-string p1, "openSLESConfig" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V throw v0 :cond_2 const-string p1, "singleThreadExecutorService" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V throw v0 :cond_3 const-string p1, "context" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V throw v0 .end method .method public static final synthetic a(Li;)Lcom/hammerandchisel/libdiscord/Discord; .locals 0 iget-object p0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; return-object p0 .end method .method public static final synthetic a(Li;[Ljava/lang/String;)Ljava/util/List; .locals 0 invoke-virtual {p0, p1}, Li;->a([Ljava/lang/String;)Ljava/util/List; move-result-object p0 return-object p0 .end method .method public static final synthetic a(Li;Lkotlin/jvm/functions/Function0;)Ljava/util/concurrent/Future; .locals 1 iget-object p0, p0, Li;->f:Ljava/util/concurrent/ExecutorService; if-eqz p1, :cond_0 new-instance v0, Ln; invoke-direct {v0, p1}, Ln;->(Lkotlin/jvm/functions/Function0;)V 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 .method public static final synthetic a(Li;Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;)V .locals 2 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; 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 iget-object p0, p0, Li;->a:Ljava/util/ArrayList; invoke-virtual {p0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z return-void .end method # virtual methods .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 iget-object v1, v6, Li;->d:Ljava/util/List; 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;->(Ljava/lang/String;)V invoke-interface {v0, v1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; return-object v7 :cond_1 iget-object v10, v6, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; if-eqz v10, :cond_3 iget-object v0, v6, Li;->h:Lcom/discord/utilities/logging/Logger; sget-object v1, Li;->i:Ljava/lang/String; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()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 new-instance v8, Li$a; move-object v0, v8 move-object/from16 v1, p0 move-object/from16 v2, p3 move/from16 v3, p4 move-wide/from16 v4, p1 invoke-direct/range {v0 .. v5}, Li$a;->(Li;Lcom/discord/rtcconnection/mediaengine/MediaEngine$a;ZJ)V new-instance v0, Le/a/e/p/b/a; iget-object v1, v6, Li;->f:Ljava/util/concurrent/ExecutorService; iget-object v9, v6, Li;->h:Lcom/discord/utilities/logging/Logger; iget-object v11, v6, Li;->d:Ljava/util/List; if-eqz v11, :cond_2 invoke-static {v8}, Le/k/a/b/e/p/g;->listOf(Ljava/lang/Object;)Ljava/util/List; 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 invoke-direct/range {v7 .. v16}, Le/a/e/p/b/a;->(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 goto :goto_1 :cond_2 const-string v0, "supportedVideoCodecs" invoke-static {v0}, Lt/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V throw v7 :cond_3 move-object v0, v7 :goto_1 if-eqz v0, :cond_4 iget-object v1, v6, Li;->a:Ljava/util/ArrayList; invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z new-instance v1, Li$b; invoke-direct {v1, v0}, Li$b;->(Le/a/e/p/b/a;)V invoke-virtual {v6, v1}, Li;->c(Lkotlin/jvm/functions/Function1;)V :cond_4 return-object v0 :cond_5 const-string v0, "onFailure" invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V throw v7 :cond_6 const-string v0, "options" invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V throw v7 .end method .method public a()Lcom/hammerandchisel/libdiscord/Discord; .locals 1 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; return-object v0 .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<", "Le/a/e/p/a;", ">;" } .end annotation new-instance v0, Ljava/util/ArrayList; array-length v1, p1 invoke-direct {v0, v1}, Ljava/util/ArrayList;->(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" invoke-static {v5, v6}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 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)" invoke-static {v4, v5}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z add-int/lit8 v3, v3, 0x1 goto :goto_0 :cond_0 new-instance p1, Lt/l; const-string v0, "null cannot be cast to non-null type java.lang.String" invoke-direct {p1, v0}, Lt/l;->(Ljava/lang/String;)V throw p1 :cond_1 new-instance p1, Li$c; invoke-direct {p1}, Li$c;->()V invoke-static {v0, p1}, Lt/q/l;->sortedWith(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/List; move-result-object p1 new-instance v0, Ljava/util/ArrayList; const/16 v1, 0xa invoke-static {p1, v1}, Le/k/a/b/e/p/g;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I move-result v1 invoke-direct {v0, v1}, Ljava/util/ArrayList;->(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 new-instance v1, Le/a/e/p/a; 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 invoke-direct/range {v3 .. v8}, Le/a/e/p/a;->(Ljava/lang/String;ILjava/lang/String;ILjava/lang/Integer;)V invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z move v2, v9 goto :goto_1 :cond_2 invoke-static {}, Le/k/a/b/e/p/g;->throwIndexOverflow()V const/4 p1, 0x0 throw p1 :cond_3 return-object v0 .end method .method public a(F)V .locals 3 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; if-eqz v0, :cond_0 const/high16 v1, 0x43960000 # 300.0f const/4 v2, 0x0 invoke-static {v2, p1}, Ljava/lang/Math;->max(FF)F move-result p1 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 .method public a(I)V .locals 1 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; if-eqz v0, :cond_0 invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setVideoInputDevice(I)V :cond_0 return-void .end method .method public a(Lcom/discord/rtcconnection/mediaengine/MediaEngine$b;)V .locals 1 if-eqz p1, :cond_0 iget-object v0, p0, Li;->c:Ljava/util/ArrayList; invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z return-void :cond_0 const-string p1, "listener" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V 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 invoke-virtual {p0}, Li;->e()V iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; if-eqz v0, :cond_0 new-instance v1, Lm; invoke-direct {v1, p1}, Lm;->(Lkotlin/jvm/functions/Function1;)V 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" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public a(Z)V .locals 1 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; if-eqz v0, :cond_0 invoke-virtual {v0, p1}, Lcom/hammerandchisel/libdiscord/Discord;->setEchoCancellation(Z)V :cond_0 return-void .end method .method public b()Lrx/Observable; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lrx/Observable<", "Lkotlin/Unit;", ">;" } .end annotation iget-object v0, p0, Li;->d:Ljava/util/List; 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; new-instance v1, Lb0/m/e/j; invoke-direct {v1, v0}, Lb0/m/e/j;->(Ljava/lang/Object;)V const-string v0, "Observable.just(Unit)" invoke-static {v1, v0}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V return-object v1 :cond_1 invoke-virtual {p0}, Li;->e()V iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; 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;->(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\"))" invoke-static {v0, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V return-object v0 :cond_2 new-instance v0, Ll; invoke-direct {v0, p0}, Ll;->(Li;)V sget-object v1, Lrx/Emitter$a;->d:Lrx/Emitter$a; invoke-static {v0, v1}, Lrx/Observable;->a(Lrx/functions/Action1;Lrx/Emitter$a;)Lrx/Observable; move-result-object v0 const-string v1, "Observable.create({ emit\u2026er.BackpressureMode.NONE)" invoke-static {v0, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V new-instance v1, Li$e; invoke-direct {v1, p0}, Li$e;->(Li;)V invoke-virtual {v0, v1}, Lrx/Observable;->b(Lrx/functions/Action1;)Lrx/Observable; move-result-object v0 sget-object v1, Li$f;->d:Li$f; invoke-virtual {v0, v1}, Lrx/Observable;->f(Lb0/l/i;)Lrx/Observable; move-result-object v0 const-string v1, "getSupportedVideoCodecs(\u2026s }\n .map { Unit }" invoke-static {v0, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 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 invoke-virtual {p0}, Li;->e()V iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; if-eqz v0, :cond_1 new-instance v1, Li$g; invoke-direct {v1, p1}, Li$g;->(Lkotlin/jvm/functions/Function1;)V invoke-virtual {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->setLocalVoiceLevelChangedCallback(Lcom/hammerandchisel/libdiscord/Discord$LocalVoiceLevelChangedCallback;)V goto :goto_0 :cond_0 iget-object p1, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; 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 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; 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 new-instance v0, Li$d; invoke-direct {v0, p0}, Li$d;->(Li;)V sget-object v1, Lrx/Emitter$a;->h:Lrx/Emitter$a; invoke-static {v0, v1}, Lrx/Observable;->a(Lrx/functions/Action1;Lrx/Emitter$a;)Lrx/Observable; move-result-object v0 const-string v1, "Observable.create({ emit\u2026.BackpressureMode.LATEST)" invoke-static {v0, v1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V 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 iget-object v0, p0, Li;->c:Ljava/util/ArrayList; 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 iget-object v2, p0, Li;->h:Lcom/discord/utilities/logging/Logger; sget-object v3, Li;->i:Ljava/lang/String; 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 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; 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 iget-object v0, p0, Li;->f:Ljava/util/concurrent/ExecutorService; return-object v0 .end method .method public final e()V .locals 8 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; if-eqz v0, :cond_0 return-void :cond_0 iget-object v1, p0, Li;->h:Lcom/discord/utilities/logging/Logger; sget-object v2, Li;->i:Ljava/lang/String; const-string v0, "initializing voice engine. OpenSL ES: " invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget-object v3, p0, Li;->g:Lcom/discord/rtcconnection/mediaengine/MediaEngine$OpenSLESConfig; 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 iget-object v0, p0, Li;->g:Lcom/discord/rtcconnection/mediaengine/MediaEngine$OpenSLESConfig; sget-object v1, Lh;->a:[I 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 new-instance v0, Li$h; invoke-direct {v0, p0}, Li$h;->(Li;)V sput-object v0, Lorg/webrtc/Logging;->externalReporter:Lorg/webrtc/Logging$ExternalReporter; :try_start_0 new-instance v0, Lcom/hammerandchisel/libdiscord/Discord; iget-object v1, p0, Li;->e:Landroid/content/Context; invoke-direct {v0, v1}, Lcom/hammerandchisel/libdiscord/Discord;->(Landroid/content/Context;)V iput-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; :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 iget-object v1, p0, Li;->h:Lcom/discord/utilities/logging/Logger; sget-object v2, Li;->i:Ljava/lang/String; 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 iget-object v1, p0, Li;->h:Lcom/discord/utilities/logging/Logger; sget-object v2, Li;->i:Ljava/lang/String; 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 iget-object v1, p0, Li;->h:Lcom/discord/utilities/logging/Logger; sget-object v2, Li;->i:Ljava/lang/String; 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 iget-object v0, p0, Li;->b:Lcom/hammerandchisel/libdiscord/Discord; if-eqz v0, :cond_3 sget-object v0, Li$i;->d:Li$i; invoke-virtual {p0, v0}, Li;->c(Lkotlin/jvm/functions/Function1;)V :cond_3 return-void .end method .method public getConnections()Ljava/util/List; .locals 1 iget-object v0, p0, Li;->a:Ljava/util/ArrayList; return-object v0 .end method