package com.google.android.gms.internal.ads;

import android.media.AudioTrack;

/* JADX INFO: loaded from: classes2.dex */
public final class ll2 {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final sl2 f13754c;

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

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

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

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

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

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

    public ll2(AudioTrack audioTrack, sl2 sl2Var) {
        this.f13752a = new kl2(audioTrack);
        this.f13753b = audioTrack.getSampleRate();
        this.f13754c = sl2Var;
        a(0);
    }

    public final void a(int i10) {
        this.f13755d = i10;
        long j10 = 10000;
        if (i10 == 0) {
            this.f13758g = 0L;
            this.f13759h = -1L;
            this.f13760i = -9223372036854775807L;
            this.f13756e = System.nanoTime() / 1000;
        } else {
            if (i10 == 1) {
                this.f13757f = 10000L;
                return;
            }
            j10 = (i10 == 2 || i10 == 3) ? 10000000L : 500000L;
        }
        this.f13757f = j10;
    }
}
