Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Interface AudioDecoderListener

Package
com.smartdevicelink.managers.audio

Overview

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.

Methods

onAudioDataAvailable( SampleBuffer sampleBuffer )

Notifies that decoded audio data is available.

public void onAudioDataAvailable(SampleBuffer sampleBuffer)

Parameters

sampleBuffer
The sample buffer holding the decoded audio data.

onDecoderFinish( boolean success )

Notifies that the audio decoding is finished.

public void onDecoderFinish(boolean success)

Parameters

success
Indicates whether audio decoding was successful or if an error occurred.

onDecoderError( Exception e )

Notifies the caller that an error/exception occurred during audio decoding.

public void onDecoderError(Exception e)

Parameters

e
The exception storing information about the error.
View on GitHub.com
Previous Section Next Section