Struct oboe_sys::oboe_AudioStreamCallback [−][src]
#[repr(C)]pub struct oboe_AudioStreamCallback { pub _base: oboe_AudioStreamDataCallback, pub _base_1: oboe_AudioStreamErrorCallback, }
Expand description
AudioStreamCallback defines a callback interface for:
- moving data to/from an audio stream using
onAudioReady
- 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().
@deprecated Use AudioStreamDataCallback
and AudioStreamErrorCallback
instead
Fields
_base: oboe_AudioStreamDataCallback
_base_1: oboe_AudioStreamErrorCallback