StudioSoundCallback

public interface StudioSoundCallback


Callback interface for receiving audio processing results, errors, and cancellation events from a StudioSoundSession.

Summary

Public methods

abstract void
onCancelled(int statusCode)

Called when audio processing has been canceled (for example, following a call to cancel).

abstract void
onError(int statusCode)

Called when an error occurs while processing an audio chunk.

abstract void
onProcessed(List<ProcessingResult> processingResults)

Called when audio processing has successfully completed for a queued input buffer.

Public methods

onCancelled

abstract void onCancelled(int statusCode)

Called when audio processing has been canceled (for example, following a call to cancel).

Parameters
int statusCode

the status code representing the cancellation reason (typically CANCELED)

onError

abstract void onError(int statusCode)

Called when an error occurs while processing an audio chunk.

Parameters
int statusCode

the StudioSoundStatusCodes.StatusCode identifying the error that occurred

onProcessed

abstract void onProcessed(List<ProcessingResult> processingResults)

Called when audio processing has successfully completed for a queued input buffer.

Parameters
List<ProcessingResult> processingResults

a list of ProcessingResult instances containing the isolated audio streams for each requested StudioSoundAudioType