package com.ifpdos.player.decoder;

import android.os.Handler;
import android.os.HandlerThread;
import android.os.Message;
import android.os.SystemClock;
import kotlin.jvm.internal.l;

/* JADX INFO: loaded from: classes.dex */
public abstract class AbsAudioDecoder implements IAudioDecoder {
    private final Handler mDecoderHandler;
    private final HandlerThread mHandlerThread;

    public AbsAudioDecoder() {
        HandlerThread handlerThread = new HandlerThread("FFmpegAudioDecoder--" + SystemClock.elapsedRealtime(), -16);
        this.mHandlerThread = handlerThread;
        handlerThread.start();
        this.mDecoderHandler = new Handler(handlerThread.getLooper()) { // from class: com.ifpdos.player.decoder.AbsAudioDecoder.1
            @Override // android.os.Handler
            public void handleMessage(Message msg) {
                l.e(msg, "msg");
                AbsAudioDecoder.this.handleInternalMessage(msg);
            }
        };
    }

    protected final Handler getMDecoderHandler() {
        return this.mDecoderHandler;
    }

    protected final HandlerThread getMHandlerThread() {
        return this.mHandlerThread;
    }

    protected void handleInternalMessage(Message msg) {
        l.e(msg, "msg");
    }
}
