130 lines
3.4 KiB
Java
130 lines
3.4 KiB
Java
package co.discord.media_engine;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: Codecs.kt */
|
|
public final class AudioEncoder {
|
|
private final int channels;
|
|
private final int freq;
|
|
private final String name;
|
|
private final int pacsize;
|
|
private final int rate;
|
|
private final int type;
|
|
|
|
public AudioEncoder(int i, String str, int i2, int i3, int i4, int i5) {
|
|
m.checkNotNullParameter(str, "name");
|
|
this.type = i;
|
|
this.name = str;
|
|
this.freq = i2;
|
|
this.pacsize = i3;
|
|
this.channels = i4;
|
|
this.rate = i5;
|
|
}
|
|
|
|
public static /* synthetic */ AudioEncoder copy$default(AudioEncoder audioEncoder, int i, String str, int i2, int i3, int i4, int i5, int i6, Object obj) {
|
|
if ((i6 & 1) != 0) {
|
|
i = audioEncoder.type;
|
|
}
|
|
if ((i6 & 2) != 0) {
|
|
str = audioEncoder.name;
|
|
}
|
|
if ((i6 & 4) != 0) {
|
|
i2 = audioEncoder.freq;
|
|
}
|
|
if ((i6 & 8) != 0) {
|
|
i3 = audioEncoder.pacsize;
|
|
}
|
|
if ((i6 & 16) != 0) {
|
|
i4 = audioEncoder.channels;
|
|
}
|
|
if ((i6 & 32) != 0) {
|
|
i5 = audioEncoder.rate;
|
|
}
|
|
return audioEncoder.copy(i, str, i2, i3, i4, i5);
|
|
}
|
|
|
|
public final int component1() {
|
|
return this.type;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.name;
|
|
}
|
|
|
|
public final int component3() {
|
|
return this.freq;
|
|
}
|
|
|
|
public final int component4() {
|
|
return this.pacsize;
|
|
}
|
|
|
|
public final int component5() {
|
|
return this.channels;
|
|
}
|
|
|
|
public final int component6() {
|
|
return this.rate;
|
|
}
|
|
|
|
public final AudioEncoder copy(int i, String str, int i2, int i3, int i4, int i5) {
|
|
m.checkNotNullParameter(str, "name");
|
|
return new AudioEncoder(i, str, i2, i3, i4, i5);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof AudioEncoder)) {
|
|
return false;
|
|
}
|
|
AudioEncoder audioEncoder = (AudioEncoder) obj;
|
|
return this.type == audioEncoder.type && m.areEqual(this.name, audioEncoder.name) && this.freq == audioEncoder.freq && this.pacsize == audioEncoder.pacsize && this.channels == audioEncoder.channels && this.rate == audioEncoder.rate;
|
|
}
|
|
|
|
public final int getChannels() {
|
|
return this.channels;
|
|
}
|
|
|
|
public final int getFreq() {
|
|
return this.freq;
|
|
}
|
|
|
|
public final String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public final int getPacsize() {
|
|
return this.pacsize;
|
|
}
|
|
|
|
public final int getRate() {
|
|
return this.rate;
|
|
}
|
|
|
|
public final int getType() {
|
|
return this.type;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int i = this.type * 31;
|
|
String str = this.name;
|
|
return ((((((((i + (str != null ? str.hashCode() : 0)) * 31) + this.freq) * 31) + this.pacsize) * 31) + this.channels) * 31) + this.rate;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("AudioEncoder(type=");
|
|
L.append(this.type);
|
|
L.append(", name=");
|
|
L.append(this.name);
|
|
L.append(", freq=");
|
|
L.append(this.freq);
|
|
L.append(", pacsize=");
|
|
L.append(this.pacsize);
|
|
L.append(", channels=");
|
|
L.append(this.channels);
|
|
L.append(", rate=");
|
|
return a.z(L, this.rate, ")");
|
|
}
|
|
}
|