An interface for the audio decoder classes.
The caller using the audio decoder will be
notified when the decoding is finished or if an error occurred.
During decoding the caller receives sample buffers with decoded audio data.
Notifies that decoded audio data is available.
public void onAudioDataAvailable(SampleBuffer sampleBuffer)
- The sample buffer holding the decoded audio data.
Notifies that the audio decoding is finished.
public void onDecoderFinish(boolean success)
- Indicates whether audio decoding was successful or if an error occurred.
View on GitHub.com
Notifies the caller that an error/exception occurred during audio decoding.
public void onDecoderError(Exception e)
- The exception storing information about the error.