apkfuckery/com.discord/smali_classes2/p.smali
2020-07-25 00:57:58 +00:00

62 lines
1.3 KiB
Smali

.class public final Lp;
.super Ljava/lang/Object;
.source "MediaEngineLegacy.kt"
# interfaces
.implements Lcom/hammerandchisel/libdiscord/Discord$GetAudioSubsystemCallback;
# instance fields
.field public final synthetic a:Lrx/Emitter;
# direct methods
.method public constructor <init>(Lrx/Emitter;)V
.locals 0
iput-object p1, p0, Lp;->a:Lrx/Emitter;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onAudioSubsystem(Ljava/lang/String;Ljava/lang/String;)V
.locals 2
const/4 v0, 0x0
if-eqz p1, :cond_1
if-eqz p2, :cond_0
iget-object v0, p0, Lp;->a:Lrx/Emitter;
new-instance v1, Lcom/discord/rtcconnection/mediaengine/MediaEngine$AudioInfo;
invoke-direct {v1, p1, p2}, Lcom/discord/rtcconnection/mediaengine/MediaEngine$AudioInfo;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-interface {v0, v1}, Lr0/g;->onNext(Ljava/lang/Object;)V
iget-object p1, p0, Lp;->a:Lrx/Emitter;
invoke-interface {p1}, Lr0/g;->onCompleted()V
return-void
:cond_0
const-string p1, "audioLayer"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_1
const-string p1, "audioSubsystem"
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
.end method