Oboe
A library for creating real-time audio apps on Android
|
#include <AudioStreamCallback.h>
Additional Inherited Members | |
Public Member Functions inherited from oboe::AudioStreamDataCallback | |
virtual DataCallbackResult | onAudioReady (AudioStream *audioStream, void *audioData, int32_t numFrames)=0 |
Public Member Functions inherited from oboe::AudioStreamErrorCallback | |
virtual bool | onError (AudioStream *, Result) |
virtual void | onErrorBeforeClose (AudioStream *, Result) |
virtual void | onErrorAfterClose (AudioStream *, Result) |
AudioStreamCallback defines a callback interface for:
1) moving data to/from an audio stream using onAudioReady
2) being alerted when a stream has an error using onError*
methods
It is used with AudioStreamBuilder::setCallback().
It combines the interfaces defined by AudioStreamDataCallback and AudioStreamErrorCallback. This was the original callback object. We now recommend using the individual interfaces and using setDataCallback() and setErrorCallback().
AudioStreamDataCallback
and AudioStreamErrorCallback
instead