package x0;

import c1.C0406c;
import c1.InterfaceC0404a;
import com.jsyn.unitgen.u;
import java.io.PrintStream;

/* JADX INFO: loaded from: classes.dex */
public class k extends g implements InterfaceC0737a {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private double f6812d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private double f6813e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private double f6814f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private double[] f6815g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private boolean f6816h;

    class a implements InterfaceC0404a {

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

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        final /* synthetic */ double f6818g;

        a(int i2, double d2) {
            this.f6817b = i2;
            this.f6818g = d2;
        }

        @Override // c1.InterfaceC0404a
        public void run() {
            k.this.p(this.f6817b, this.f6818g);
        }
    }

    class b implements InterfaceC0404a {

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

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        final /* synthetic */ double f6821g;

        b(int i2, double d2) {
            this.f6820b = i2;
            this.f6821g = d2;
        }

        @Override // c1.InterfaceC0404a
        public void run() {
            k.this.p(this.f6820b, this.f6821g);
        }
    }

    public k(int i2, String str, double d2) {
        super(i2, str, d2);
        this.f6812d = u.FALSE;
        this.f6813e = 1.0d;
        this.f6814f = u.FALSE;
        this.f6816h = false;
        z(d2);
        this.f6815g = new double[i2];
        for (int i3 = 0; i3 < i2; i3++) {
            this.f6815g[i3] = d2;
        }
    }

    public void A(double d2) {
        this.f6813e = d2;
    }

    public void B(double d2) {
        this.f6812d = d2;
    }

    public void C(boolean z2) {
        this.f6816h = z2;
    }

    public void D(double d2, double d3, double d4) {
        B(d2);
        A(d4);
        z(d3);
        v(d3);
    }

    public void E(k kVar) {
        D(kVar.s(), kVar.q(), kVar.r());
    }

    @Override // x0.InterfaceC0737a
    public void a(long j2, int i2, int i3) {
        for (c cVar : this.f6793c) {
            ((C0738b) cVar).a(j2, i2, i3);
        }
    }

    @Override // x0.g
    protected void n(int i2, double d2) {
        this.f6793c = new C0738b[i2];
        for (int i3 = 0; i3 < i2; i3++) {
            this.f6793c[i3] = new C0738b(this, d2);
        }
    }

    @Override // x0.g
    protected void p(int i2, double d2) {
        super.p(i2, d2);
        this.f6815g[i2] = d2;
    }

    public double q() {
        return this.f6814f;
    }

    public double r() {
        return this.f6813e;
    }

    public double s() {
        return this.f6812d;
    }

    public boolean t() {
        return this.f6816h;
    }

    public void u(PrintStream printStream, int i2) {
        for (c cVar : this.f6793c) {
            ((C0738b) cVar).s(printStream, i2);
        }
    }

    public void v(double d2) {
        x(0, d2);
    }

    public void w(double d2, C0406c c0406c) {
        y(0, d2, c0406c);
    }

    public void x(int i2, double d2) {
        this.f6815g[i2] = d2;
        e(new a(i2, d2));
    }

    public void y(int i2, double d2, C0406c c0406c) {
        k(i2);
        f(c0406c, new b(i2, d2));
    }

    public void z(double d2) {
        this.f6814f = d2;
    }

    public k(String str, double d2) {
        this(1, str, d2);
    }

    public k(String str) {
        this(1, str, u.FALSE);
    }

    public k(int i2, String str) {
        this(i2, str, u.FALSE);
    }
}
