package y0;

import com.jsyn.unitgen.i;
import com.jsyn.unitgen.o;
import com.jsyn.unitgen.x;
import q0.InterfaceC0696b;
import v0.C0729a;
import x0.k;

/* JADX INFO: renamed from: y0.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C0744a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private x f7038a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private C0729a f7039b;

    public C0744a(InterfaceC0696b interfaceC0696b, int i2) {
        if (i2 == 1) {
            this.f7038a = new i();
        } else {
            if (i2 != 2) {
                throw new IllegalArgumentException("Only 1 or 2 samplesPerFrame supported.");
            }
            this.f7038a = new o();
        }
        interfaceC0696b.a(this.f7038a);
        C0729a c0729a = new C0729a();
        this.f7039b = c0729a;
        c0729a.j(!interfaceC0696b.b());
        this.f7039b.i(true);
        this.f7039b.c(32768);
        this.f7038a.a(this.f7039b);
        this.f7038a.start();
    }

    public int a() {
        return this.f7039b.d();
    }

    public k b() {
        return this.f7038a.f3297b;
    }

    public int c(double[] dArr, int i2, int i3) {
        return this.f7039b.g(dArr, i2, i3);
    }
}
