package D0;

import android.media.AudioTrack;

/* JADX INFO: loaded from: classes.dex */
public final class t {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final s f1590a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f1591b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public long f1592c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public long f1593d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public long f1594e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public long f1595f;

    public t(AudioTrack audioTrack) {
        this.f1590a = new s(audioTrack);
        a();
    }

    public final void a() {
        if (this.f1590a != null) {
            b(0);
        }
    }

    public final void b(int i) {
        this.f1591b = i;
        if (i == 0) {
            this.f1594e = 0L;
            this.f1595f = -1L;
            this.f1592c = System.nanoTime() / 1000;
            this.f1593d = 10000L;
            return;
        }
        if (i == 1) {
            this.f1593d = 10000L;
            return;
        }
        if (i == 2 || i == 3) {
            this.f1593d = 10000000L;
        } else {
            if (i != 4) {
                throw new IllegalStateException();
            }
            this.f1593d = 500000L;
        }
    }
}
