359 lines
14 KiB
Java
359 lines
14 KiB
Java
package co.discord.media_engine.internal;
|
|
|
|
import a0.a.a.a;
|
|
import a0.a.a.b;
|
|
import d0.z.d.m;
|
|
/* compiled from: NativeStatistics.kt */
|
|
/* loaded from: classes.dex */
|
|
public final class OutboundAudio {
|
|
private final int audioLevel;
|
|
private final long bytesSent;
|
|
private final String codecName;
|
|
private final int codecPayloadType;
|
|
private final int delayMedian;
|
|
private final int delayStd;
|
|
private final double echoReturnLoss;
|
|
private final double echoReturnLossEnchancement;
|
|
private final float fractionLost;
|
|
private final long framesCaptured;
|
|
private final long framesRendered;
|
|
private final int jitter;
|
|
private final Boolean noiseCancellerIsEnabled;
|
|
private final Long noiseCancellerProcessTime;
|
|
private final int packetsLost;
|
|
private final long packetsSent;
|
|
private final double residualEchoLikelihood;
|
|
private final double residualEchoLikelihoodRecentMax;
|
|
private final long rtt;
|
|
private final long speaking;
|
|
private final long ssrc;
|
|
private final boolean typingNoiseDetected;
|
|
private final Boolean voiceActivityDetectorIsEnabled;
|
|
private final Long voiceActivityDetectorProcessTime;
|
|
|
|
public OutboundAudio(int i, long j, String str, int i2, int i3, int i4, double d, double d2, float f, int i5, int i6, long j2, double d3, double d4, long j3, long j4, long j5, boolean z2, long j6, long j7, Boolean bool, Long l, Boolean bool2, Long l2) {
|
|
m.checkNotNullParameter(str, "codecName");
|
|
this.audioLevel = i;
|
|
this.bytesSent = j;
|
|
this.codecName = str;
|
|
this.codecPayloadType = i2;
|
|
this.delayMedian = i3;
|
|
this.delayStd = i4;
|
|
this.echoReturnLoss = d;
|
|
this.echoReturnLossEnchancement = d2;
|
|
this.fractionLost = f;
|
|
this.jitter = i5;
|
|
this.packetsLost = i6;
|
|
this.packetsSent = j2;
|
|
this.residualEchoLikelihood = d3;
|
|
this.residualEchoLikelihoodRecentMax = d4;
|
|
this.rtt = j3;
|
|
this.speaking = j4;
|
|
this.ssrc = j5;
|
|
this.typingNoiseDetected = z2;
|
|
this.framesCaptured = j6;
|
|
this.framesRendered = j7;
|
|
this.noiseCancellerIsEnabled = bool;
|
|
this.noiseCancellerProcessTime = l;
|
|
this.voiceActivityDetectorIsEnabled = bool2;
|
|
this.voiceActivityDetectorProcessTime = l2;
|
|
}
|
|
|
|
public static /* synthetic */ OutboundAudio copy$default(OutboundAudio outboundAudio, int i, long j, String str, int i2, int i3, int i4, double d, double d2, float f, int i5, int i6, long j2, double d3, double d4, long j3, long j4, long j5, boolean z2, long j6, long j7, Boolean bool, Long l, Boolean bool2, Long l2, int i7, Object obj) {
|
|
return outboundAudio.copy((i7 & 1) != 0 ? outboundAudio.audioLevel : i, (i7 & 2) != 0 ? outboundAudio.bytesSent : j, (i7 & 4) != 0 ? outboundAudio.codecName : str, (i7 & 8) != 0 ? outboundAudio.codecPayloadType : i2, (i7 & 16) != 0 ? outboundAudio.delayMedian : i3, (i7 & 32) != 0 ? outboundAudio.delayStd : i4, (i7 & 64) != 0 ? outboundAudio.echoReturnLoss : d, (i7 & 128) != 0 ? outboundAudio.echoReturnLossEnchancement : d2, (i7 & 256) != 0 ? outboundAudio.fractionLost : f, (i7 & 512) != 0 ? outboundAudio.jitter : i5, (i7 & 1024) != 0 ? outboundAudio.packetsLost : i6, (i7 & 2048) != 0 ? outboundAudio.packetsSent : j2, (i7 & 4096) != 0 ? outboundAudio.residualEchoLikelihood : d3, (i7 & 8192) != 0 ? outboundAudio.residualEchoLikelihoodRecentMax : d4, (i7 & 16384) != 0 ? outboundAudio.rtt : j3, (i7 & 32768) != 0 ? outboundAudio.speaking : j4, (i7 & 65536) != 0 ? outboundAudio.ssrc : j5, (i7 & 131072) != 0 ? outboundAudio.typingNoiseDetected : z2, (262144 & i7) != 0 ? outboundAudio.framesCaptured : j6, (i7 & 524288) != 0 ? outboundAudio.framesRendered : j7, (i7 & 1048576) != 0 ? outboundAudio.noiseCancellerIsEnabled : bool, (2097152 & i7) != 0 ? outboundAudio.noiseCancellerProcessTime : l, (i7 & 4194304) != 0 ? outboundAudio.voiceActivityDetectorIsEnabled : bool2, (i7 & 8388608) != 0 ? outboundAudio.voiceActivityDetectorProcessTime : l2);
|
|
}
|
|
|
|
public final int component1() {
|
|
return this.audioLevel;
|
|
}
|
|
|
|
public final int component10() {
|
|
return this.jitter;
|
|
}
|
|
|
|
public final int component11() {
|
|
return this.packetsLost;
|
|
}
|
|
|
|
public final long component12() {
|
|
return this.packetsSent;
|
|
}
|
|
|
|
public final double component13() {
|
|
return this.residualEchoLikelihood;
|
|
}
|
|
|
|
public final double component14() {
|
|
return this.residualEchoLikelihoodRecentMax;
|
|
}
|
|
|
|
public final long component15() {
|
|
return this.rtt;
|
|
}
|
|
|
|
public final long component16() {
|
|
return this.speaking;
|
|
}
|
|
|
|
public final long component17() {
|
|
return this.ssrc;
|
|
}
|
|
|
|
public final boolean component18() {
|
|
return this.typingNoiseDetected;
|
|
}
|
|
|
|
public final long component19() {
|
|
return this.framesCaptured;
|
|
}
|
|
|
|
public final long component2() {
|
|
return this.bytesSent;
|
|
}
|
|
|
|
public final long component20() {
|
|
return this.framesRendered;
|
|
}
|
|
|
|
public final Boolean component21() {
|
|
return this.noiseCancellerIsEnabled;
|
|
}
|
|
|
|
public final Long component22() {
|
|
return this.noiseCancellerProcessTime;
|
|
}
|
|
|
|
public final Boolean component23() {
|
|
return this.voiceActivityDetectorIsEnabled;
|
|
}
|
|
|
|
public final Long component24() {
|
|
return this.voiceActivityDetectorProcessTime;
|
|
}
|
|
|
|
public final String component3() {
|
|
return this.codecName;
|
|
}
|
|
|
|
public final int component4() {
|
|
return this.codecPayloadType;
|
|
}
|
|
|
|
public final int component5() {
|
|
return this.delayMedian;
|
|
}
|
|
|
|
public final int component6() {
|
|
return this.delayStd;
|
|
}
|
|
|
|
public final double component7() {
|
|
return this.echoReturnLoss;
|
|
}
|
|
|
|
public final double component8() {
|
|
return this.echoReturnLossEnchancement;
|
|
}
|
|
|
|
public final float component9() {
|
|
return this.fractionLost;
|
|
}
|
|
|
|
public final OutboundAudio copy(int i, long j, String str, int i2, int i3, int i4, double d, double d2, float f, int i5, int i6, long j2, double d3, double d4, long j3, long j4, long j5, boolean z2, long j6, long j7, Boolean bool, Long l, Boolean bool2, Long l2) {
|
|
m.checkNotNullParameter(str, "codecName");
|
|
return new OutboundAudio(i, j, str, i2, i3, i4, d, d2, f, i5, i6, j2, d3, d4, j3, j4, j5, z2, j6, j7, bool, l, bool2, l2);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof OutboundAudio)) {
|
|
return false;
|
|
}
|
|
OutboundAudio outboundAudio = (OutboundAudio) obj;
|
|
return this.audioLevel == outboundAudio.audioLevel && this.bytesSent == outboundAudio.bytesSent && m.areEqual(this.codecName, outboundAudio.codecName) && this.codecPayloadType == outboundAudio.codecPayloadType && this.delayMedian == outboundAudio.delayMedian && this.delayStd == outboundAudio.delayStd && Double.compare(this.echoReturnLoss, outboundAudio.echoReturnLoss) == 0 && Double.compare(this.echoReturnLossEnchancement, outboundAudio.echoReturnLossEnchancement) == 0 && Float.compare(this.fractionLost, outboundAudio.fractionLost) == 0 && this.jitter == outboundAudio.jitter && this.packetsLost == outboundAudio.packetsLost && this.packetsSent == outboundAudio.packetsSent && Double.compare(this.residualEchoLikelihood, outboundAudio.residualEchoLikelihood) == 0 && Double.compare(this.residualEchoLikelihoodRecentMax, outboundAudio.residualEchoLikelihoodRecentMax) == 0 && this.rtt == outboundAudio.rtt && this.speaking == outboundAudio.speaking && this.ssrc == outboundAudio.ssrc && this.typingNoiseDetected == outboundAudio.typingNoiseDetected && this.framesCaptured == outboundAudio.framesCaptured && this.framesRendered == outboundAudio.framesRendered && m.areEqual(this.noiseCancellerIsEnabled, outboundAudio.noiseCancellerIsEnabled) && m.areEqual(this.noiseCancellerProcessTime, outboundAudio.noiseCancellerProcessTime) && m.areEqual(this.voiceActivityDetectorIsEnabled, outboundAudio.voiceActivityDetectorIsEnabled) && m.areEqual(this.voiceActivityDetectorProcessTime, outboundAudio.voiceActivityDetectorProcessTime);
|
|
}
|
|
|
|
public final int getAudioLevel() {
|
|
return this.audioLevel;
|
|
}
|
|
|
|
public final long getBytesSent() {
|
|
return this.bytesSent;
|
|
}
|
|
|
|
public final String getCodecName() {
|
|
return this.codecName;
|
|
}
|
|
|
|
public final int getCodecPayloadType() {
|
|
return this.codecPayloadType;
|
|
}
|
|
|
|
public final int getDelayMedian() {
|
|
return this.delayMedian;
|
|
}
|
|
|
|
public final int getDelayStd() {
|
|
return this.delayStd;
|
|
}
|
|
|
|
public final double getEchoReturnLoss() {
|
|
return this.echoReturnLoss;
|
|
}
|
|
|
|
public final double getEchoReturnLossEnchancement() {
|
|
return this.echoReturnLossEnchancement;
|
|
}
|
|
|
|
public final float getFractionLost() {
|
|
return this.fractionLost;
|
|
}
|
|
|
|
public final long getFramesCaptured() {
|
|
return this.framesCaptured;
|
|
}
|
|
|
|
public final long getFramesRendered() {
|
|
return this.framesRendered;
|
|
}
|
|
|
|
public final int getJitter() {
|
|
return this.jitter;
|
|
}
|
|
|
|
public final Boolean getNoiseCancellerIsEnabled() {
|
|
return this.noiseCancellerIsEnabled;
|
|
}
|
|
|
|
public final Long getNoiseCancellerProcessTime() {
|
|
return this.noiseCancellerProcessTime;
|
|
}
|
|
|
|
public final int getPacketsLost() {
|
|
return this.packetsLost;
|
|
}
|
|
|
|
public final long getPacketsSent() {
|
|
return this.packetsSent;
|
|
}
|
|
|
|
public final double getResidualEchoLikelihood() {
|
|
return this.residualEchoLikelihood;
|
|
}
|
|
|
|
public final double getResidualEchoLikelihoodRecentMax() {
|
|
return this.residualEchoLikelihoodRecentMax;
|
|
}
|
|
|
|
public final long getRtt() {
|
|
return this.rtt;
|
|
}
|
|
|
|
public final long getSpeaking() {
|
|
return this.speaking;
|
|
}
|
|
|
|
public final long getSsrc() {
|
|
return this.ssrc;
|
|
}
|
|
|
|
public final boolean getTypingNoiseDetected() {
|
|
return this.typingNoiseDetected;
|
|
}
|
|
|
|
public final Boolean getVoiceActivityDetectorIsEnabled() {
|
|
return this.voiceActivityDetectorIsEnabled;
|
|
}
|
|
|
|
public final Long getVoiceActivityDetectorProcessTime() {
|
|
return this.voiceActivityDetectorProcessTime;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int a = (b.a(this.bytesSent) + (this.audioLevel * 31)) * 31;
|
|
String str = this.codecName;
|
|
int i = 0;
|
|
int hashCode = str != null ? str.hashCode() : 0;
|
|
int a2 = a.a(this.echoReturnLoss);
|
|
int a3 = a.a(this.echoReturnLossEnchancement);
|
|
int floatToIntBits = Float.floatToIntBits(this.fractionLost);
|
|
int a4 = b.a(this.packetsSent);
|
|
int a5 = a.a(this.residualEchoLikelihood);
|
|
int a6 = a.a(this.residualEchoLikelihoodRecentMax);
|
|
int a7 = b.a(this.rtt);
|
|
int a8 = (b.a(this.ssrc) + ((b.a(this.speaking) + ((a7 + ((a6 + ((a5 + ((a4 + ((((((floatToIntBits + ((a3 + ((a2 + ((((((((a + hashCode) * 31) + this.codecPayloadType) * 31) + this.delayMedian) * 31) + this.delayStd) * 31)) * 31)) * 31)) * 31) + this.jitter) * 31) + this.packetsLost) * 31)) * 31)) * 31)) * 31)) * 31)) * 31)) * 31;
|
|
boolean z2 = this.typingNoiseDetected;
|
|
if (z2) {
|
|
z2 = true;
|
|
}
|
|
int i2 = z2 ? 1 : 0;
|
|
int i3 = z2 ? 1 : 0;
|
|
int i4 = z2 ? 1 : 0;
|
|
int a9 = (b.a(this.framesRendered) + ((b.a(this.framesCaptured) + ((a8 + i2) * 31)) * 31)) * 31;
|
|
Boolean bool = this.noiseCancellerIsEnabled;
|
|
int hashCode2 = (a9 + (bool != null ? bool.hashCode() : 0)) * 31;
|
|
Long l = this.noiseCancellerProcessTime;
|
|
int hashCode3 = (hashCode2 + (l != null ? l.hashCode() : 0)) * 31;
|
|
Boolean bool2 = this.voiceActivityDetectorIsEnabled;
|
|
int hashCode4 = (hashCode3 + (bool2 != null ? bool2.hashCode() : 0)) * 31;
|
|
Long l2 = this.voiceActivityDetectorProcessTime;
|
|
if (l2 != null) {
|
|
i = l2.hashCode();
|
|
}
|
|
return hashCode4 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder R = b.d.b.a.a.R("OutboundAudio(audioLevel=");
|
|
R.append(this.audioLevel);
|
|
R.append(", bytesSent=");
|
|
R.append(this.bytesSent);
|
|
R.append(", codecName=");
|
|
R.append(this.codecName);
|
|
R.append(", codecPayloadType=");
|
|
R.append(this.codecPayloadType);
|
|
R.append(", delayMedian=");
|
|
R.append(this.delayMedian);
|
|
R.append(", delayStd=");
|
|
R.append(this.delayStd);
|
|
R.append(", echoReturnLoss=");
|
|
R.append(this.echoReturnLoss);
|
|
R.append(", echoReturnLossEnchancement=");
|
|
R.append(this.echoReturnLossEnchancement);
|
|
R.append(", fractionLost=");
|
|
R.append(this.fractionLost);
|
|
R.append(", jitter=");
|
|
R.append(this.jitter);
|
|
R.append(", packetsLost=");
|
|
R.append(this.packetsLost);
|
|
R.append(", packetsSent=");
|
|
R.append(this.packetsSent);
|
|
R.append(", residualEchoLikelihood=");
|
|
R.append(this.residualEchoLikelihood);
|
|
R.append(", residualEchoLikelihoodRecentMax=");
|
|
R.append(this.residualEchoLikelihoodRecentMax);
|
|
R.append(", rtt=");
|
|
R.append(this.rtt);
|
|
R.append(", speaking=");
|
|
R.append(this.speaking);
|
|
R.append(", ssrc=");
|
|
R.append(this.ssrc);
|
|
R.append(", typingNoiseDetected=");
|
|
R.append(this.typingNoiseDetected);
|
|
R.append(", framesCaptured=");
|
|
R.append(this.framesCaptured);
|
|
R.append(", framesRendered=");
|
|
R.append(this.framesRendered);
|
|
R.append(", noiseCancellerIsEnabled=");
|
|
R.append(this.noiseCancellerIsEnabled);
|
|
R.append(", noiseCancellerProcessTime=");
|
|
R.append(this.noiseCancellerProcessTime);
|
|
R.append(", voiceActivityDetectorIsEnabled=");
|
|
R.append(this.voiceActivityDetectorIsEnabled);
|
|
R.append(", voiceActivityDetectorProcessTime=");
|
|
return b.d.b.a.a.F(R, this.voiceActivityDetectorProcessTime, ")");
|
|
}
|
|
}
|