166 lines
5.3 KiB
Smali
166 lines
5.3 KiB
Smali
|
.class public final Lcom/discord/stores/StoreMediaEngine$Companion;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "StoreMediaEngine.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lcom/discord/stores/StoreMediaEngine;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x19
|
||
|
name = "Companion"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Lcom/discord/stores/StoreMediaEngine$Companion;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final synthetic access$setVoiceConfig(Lcom/discord/stores/StoreMediaEngine$Companion;Lcom/discord/rtcconnection/mediaengine/MediaEngine;Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;Lcom/discord/stores/StoreMediaEngine$ExperimentConfig;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/stores/StoreMediaEngine$Companion;->setVoiceConfig(Lcom/discord/rtcconnection/mediaengine/MediaEngine;Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;Lcom/discord/stores/StoreMediaEngine$ExperimentConfig;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final setVoiceConfig(Lcom/discord/rtcconnection/mediaengine/MediaEngine;Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;Lcom/discord/stores/StoreMediaEngine$ExperimentConfig;)V
|
||
|
.locals 9
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getOutputVolume()F
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngine;->a(F)V
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getEchoCancellation()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngine;->a(Z)V
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseSuppression()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngine;->b(Z)V
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticGainControl()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-interface {p1, v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngine;->d(Z)V
|
||
|
|
||
|
invoke-virtual {p3}, Lcom/discord/stores/StoreMediaEngine$ExperimentConfig;->getNoiseCancellationExperimentEnabled()Z
|
||
|
|
||
|
move-result p3
|
||
|
|
||
|
if-eqz p3, :cond_0
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getNoiseCancellation()Z
|
||
|
|
||
|
move-result p3
|
||
|
|
||
|
invoke-interface {p1, p3}, Lcom/discord/rtcconnection/mediaengine/MediaEngine;->c(Z)V
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {p1}, Lcom/discord/rtcconnection/mediaengine/MediaEngine;->getConnections()Ljava/util/List;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result p3
|
||
|
|
||
|
if-eqz p3, :cond_1
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p3
|
||
|
|
||
|
check-cast p3, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getInputMode()Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v8, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
const/16 v7, 0x1f
|
||
|
|
||
|
move-object v1, v8
|
||
|
|
||
|
invoke-direct/range {v1 .. v7}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;-><init>(IIIZII)V
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getSensitivity()F
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
float-to-int v2, v1
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->getAutomaticVad()Z
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
iget v3, v8, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;->b:I
|
||
|
|
||
|
iget v4, v8, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;->c:I
|
||
|
|
||
|
iget v6, v8, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;->e:I
|
||
|
|
||
|
move-object v1, v8
|
||
|
|
||
|
invoke-virtual/range {v1 .. v6}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;->a(IIIZI)Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {p3, v0, v1}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;->a(Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$InputMode;Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection$a;)V
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isDeafened()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-interface {p3, v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;->d(Z)V
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreMediaSettings$VoiceConfiguration;->isMuted()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-interface {p3, v0}, Lcom/discord/rtcconnection/mediaengine/MediaEngineConnection;->a(Z)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
.end method
|