discord-jadx/app/src/main/java/co/discord/media_engine/AudioDecoder.java

144 lines
4.2 KiB
Java

package co.discord.media_engine;
import c.d.b.a.a;
import d0.z.d.m;
import java.util.Map;
import java.util.Objects;
/* compiled from: Codecs.kt */
public final class AudioDecoder {
private final int channels;
private final int freq;
private final String name;
private final Map<String, String> params;
private final String[] paramsKeys;
private final String[] paramsValues;
private final int type;
public AudioDecoder(int i, String str, int i2, int i3, Map<String, String> map) {
m.checkNotNullParameter(str, "name");
m.checkNotNullParameter(map, "params");
this.type = i;
this.name = str;
this.freq = i2;
this.channels = i3;
this.params = map;
Object[] array = map.keySet().toArray(new String[0]);
Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array<T>");
this.paramsKeys = (String[]) array;
Object[] array2 = map.values().toArray(new String[0]);
Objects.requireNonNull(array2, "null cannot be cast to non-null type kotlin.Array<T>");
this.paramsValues = (String[]) array2;
}
/* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: co.discord.media_engine.AudioDecoder */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ AudioDecoder copy$default(AudioDecoder audioDecoder, int i, String str, int i2, int i3, Map map, int i4, Object obj) {
if ((i4 & 1) != 0) {
i = audioDecoder.type;
}
if ((i4 & 2) != 0) {
str = audioDecoder.name;
}
if ((i4 & 4) != 0) {
i2 = audioDecoder.freq;
}
if ((i4 & 8) != 0) {
i3 = audioDecoder.channels;
}
if ((i4 & 16) != 0) {
map = audioDecoder.params;
}
return audioDecoder.copy(i, str, i2, i3, map);
}
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.channels;
}
public final Map<String, String> component5() {
return this.params;
}
public final AudioDecoder copy(int i, String str, int i2, int i3, Map<String, String> map) {
m.checkNotNullParameter(str, "name");
m.checkNotNullParameter(map, "params");
return new AudioDecoder(i, str, i2, i3, map);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof AudioDecoder)) {
return false;
}
AudioDecoder audioDecoder = (AudioDecoder) obj;
return this.type == audioDecoder.type && m.areEqual(this.name, audioDecoder.name) && this.freq == audioDecoder.freq && this.channels == audioDecoder.channels && m.areEqual(this.params, audioDecoder.params);
}
public final int getChannels() {
return this.channels;
}
public final int getFreq() {
return this.freq;
}
public final String getName() {
return this.name;
}
public final Map<String, String> getParams() {
return this.params;
}
public final String[] getParamsKeys() {
return this.paramsKeys;
}
public final String[] getParamsValues() {
return this.paramsValues;
}
public final int getType() {
return this.type;
}
public int hashCode() {
int i = this.type * 31;
String str = this.name;
int i2 = 0;
int hashCode = (((((i + (str != null ? str.hashCode() : 0)) * 31) + this.freq) * 31) + this.channels) * 31;
Map<String, String> map = this.params;
if (map != null) {
i2 = map.hashCode();
}
return hashCode + i2;
}
public String toString() {
StringBuilder K = a.K("AudioDecoder(type=");
K.append(this.type);
K.append(", name=");
K.append(this.name);
K.append(", freq=");
K.append(this.freq);
K.append(", channels=");
K.append(this.channels);
K.append(", params=");
return a.E(K, this.params, ")");
}
}