package com.ifpdos.screenrecorder.lib.audio;

import android.util.Log;
import com.ifpdos.screenrecorder.lib.audio.InitProvider;
import i0.C0546a;
import i0.f;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private byte[] f3215b;

    private static class b {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        private static final a f3216a = new a();
    }

    public static a a() {
        return b.f3216a;
    }

    protected void b() {
        c(f.AUTO);
    }

    protected void c(f fVar) {
        if (this.f3214a == null) {
            Log.i("RecordAudioManager", "init: ");
            this.f3214a = new C0546a();
            InitProvider.a aVar = InitProvider.f3212a;
            if (aVar.a() != null) {
                this.f3214a.e(aVar.a(), fVar);
            }
        }
    }

    private a() {
        this.f3214a = null;
        this.f3215b = null;
        b();
    }
}
