152 lines
5.6 KiB
Java
152 lines
5.6 KiB
Java
package co.discord.media_engine;
|
|
|
|
import a0.a.a.a;
|
|
import a0.a.a.b;
|
|
import d0.z.d.m;
|
|
import java.util.Arrays;
|
|
/* compiled from: VoiceQuality.kt */
|
|
public final class InboundAudio {
|
|
private final InboundBufferStats bufferStats;
|
|
private final InboundFrameOpStats frameOpStats;
|
|
private final double mos;
|
|
private final Integer[] mosBuckets;
|
|
private final int mosCount;
|
|
private final double mosSum;
|
|
private final long packetsLost;
|
|
private final long packetsReceived;
|
|
|
|
public InboundAudio(long j, long j2, double d, double d2, int i, Integer[] numArr, InboundBufferStats inboundBufferStats, InboundFrameOpStats inboundFrameOpStats) {
|
|
m.checkNotNullParameter(numArr, "mosBuckets");
|
|
m.checkNotNullParameter(inboundBufferStats, "bufferStats");
|
|
m.checkNotNullParameter(inboundFrameOpStats, "frameOpStats");
|
|
this.packetsReceived = j;
|
|
this.packetsLost = j2;
|
|
this.mos = d;
|
|
this.mosSum = d2;
|
|
this.mosCount = i;
|
|
this.mosBuckets = numArr;
|
|
this.bufferStats = inboundBufferStats;
|
|
this.frameOpStats = inboundFrameOpStats;
|
|
}
|
|
|
|
public static /* synthetic */ InboundAudio copy$default(InboundAudio inboundAudio, long j, long j2, double d, double d2, int i, Integer[] numArr, InboundBufferStats inboundBufferStats, InboundFrameOpStats inboundFrameOpStats, int i2, Object obj) {
|
|
return inboundAudio.copy((i2 & 1) != 0 ? inboundAudio.packetsReceived : j, (i2 & 2) != 0 ? inboundAudio.packetsLost : j2, (i2 & 4) != 0 ? inboundAudio.mos : d, (i2 & 8) != 0 ? inboundAudio.mosSum : d2, (i2 & 16) != 0 ? inboundAudio.mosCount : i, (i2 & 32) != 0 ? inboundAudio.mosBuckets : numArr, (i2 & 64) != 0 ? inboundAudio.bufferStats : inboundBufferStats, (i2 & 128) != 0 ? inboundAudio.frameOpStats : inboundFrameOpStats);
|
|
}
|
|
|
|
public final long component1() {
|
|
return this.packetsReceived;
|
|
}
|
|
|
|
public final long component2() {
|
|
return this.packetsLost;
|
|
}
|
|
|
|
public final double component3() {
|
|
return this.mos;
|
|
}
|
|
|
|
public final double component4() {
|
|
return this.mosSum;
|
|
}
|
|
|
|
public final int component5() {
|
|
return this.mosCount;
|
|
}
|
|
|
|
public final Integer[] component6() {
|
|
return this.mosBuckets;
|
|
}
|
|
|
|
public final InboundBufferStats component7() {
|
|
return this.bufferStats;
|
|
}
|
|
|
|
public final InboundFrameOpStats component8() {
|
|
return this.frameOpStats;
|
|
}
|
|
|
|
public final InboundAudio copy(long j, long j2, double d, double d2, int i, Integer[] numArr, InboundBufferStats inboundBufferStats, InboundFrameOpStats inboundFrameOpStats) {
|
|
m.checkNotNullParameter(numArr, "mosBuckets");
|
|
m.checkNotNullParameter(inboundBufferStats, "bufferStats");
|
|
m.checkNotNullParameter(inboundFrameOpStats, "frameOpStats");
|
|
return new InboundAudio(j, j2, d, d2, i, numArr, inboundBufferStats, inboundFrameOpStats);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof InboundAudio)) {
|
|
return false;
|
|
}
|
|
InboundAudio inboundAudio = (InboundAudio) obj;
|
|
return this.packetsReceived == inboundAudio.packetsReceived && this.packetsLost == inboundAudio.packetsLost && Double.compare(this.mos, inboundAudio.mos) == 0 && Double.compare(this.mosSum, inboundAudio.mosSum) == 0 && this.mosCount == inboundAudio.mosCount && m.areEqual(this.mosBuckets, inboundAudio.mosBuckets) && m.areEqual(this.bufferStats, inboundAudio.bufferStats) && m.areEqual(this.frameOpStats, inboundAudio.frameOpStats);
|
|
}
|
|
|
|
public final InboundBufferStats getBufferStats() {
|
|
return this.bufferStats;
|
|
}
|
|
|
|
public final InboundFrameOpStats getFrameOpStats() {
|
|
return this.frameOpStats;
|
|
}
|
|
|
|
public final double getMos() {
|
|
return this.mos;
|
|
}
|
|
|
|
public final Integer[] getMosBuckets() {
|
|
return this.mosBuckets;
|
|
}
|
|
|
|
public final int getMosCount() {
|
|
return this.mosCount;
|
|
}
|
|
|
|
public final double getMosSum() {
|
|
return this.mosSum;
|
|
}
|
|
|
|
public final long getPacketsLost() {
|
|
return this.packetsLost;
|
|
}
|
|
|
|
public final long getPacketsReceived() {
|
|
return this.packetsReceived;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int a = (((a.a(this.mosSum) + ((a.a(this.mos) + ((b.a(this.packetsLost) + (b.a(this.packetsReceived) * 31)) * 31)) * 31)) * 31) + this.mosCount) * 31;
|
|
Integer[] numArr = this.mosBuckets;
|
|
int i = 0;
|
|
int hashCode = (a + (numArr != null ? Arrays.hashCode(numArr) : 0)) * 31;
|
|
InboundBufferStats inboundBufferStats = this.bufferStats;
|
|
int hashCode2 = (hashCode + (inboundBufferStats != null ? inboundBufferStats.hashCode() : 0)) * 31;
|
|
InboundFrameOpStats inboundFrameOpStats = this.frameOpStats;
|
|
if (inboundFrameOpStats != null) {
|
|
i = inboundFrameOpStats.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder K = c.d.b.a.a.K("InboundAudio(packetsReceived=");
|
|
K.append(this.packetsReceived);
|
|
K.append(", packetsLost=");
|
|
K.append(this.packetsLost);
|
|
K.append(", mos=");
|
|
K.append(this.mos);
|
|
K.append(", mosSum=");
|
|
K.append(this.mosSum);
|
|
K.append(", mosCount=");
|
|
K.append(this.mosCount);
|
|
K.append(", mosBuckets=");
|
|
K.append(Arrays.toString(this.mosBuckets));
|
|
K.append(", bufferStats=");
|
|
K.append(this.bufferStats);
|
|
K.append(", frameOpStats=");
|
|
K.append(this.frameOpStats);
|
|
K.append(")");
|
|
return K.toString();
|
|
}
|
|
}
|