java.lang.Object
protected final int targetSampleRate
protected final int targetSampleType
protected android.media.MediaExtractor extractor
protected android.media.MediaCodec decoder
protected final android.net.Uri audioSource
protected final java.lang.ref.WeakReference contextWeakReference
protected final com.smartdevicelink.managers.audio.AudioDecoderListener listener
public BaseAudioDecoder(Uri audioSource,Context context,int sampleRate,int sampleType,AudioDecoderListener listener)
protected void initMediaComponents() throws java.lang.Exception
protected android.media.MediaCodec.BufferInfo onInputBufferAvailable(MediaExtractor extractor,ByteBuffer inputBuffer)
protected com.smartdevicelink.managers.audio.SampleBuffer onOutputBufferAvailable(ByteBuffer outputBuffer)
protected void onOutputFormatChanged(MediaFormat mediaFormat)
protected void onMediaCodecError(MediaCodec.CodecException e)
public abstract void start()
public void stop()
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |