#[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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for oboe_AudioStreamCallback
impl RefUnwindSafe for oboe_AudioStreamCallback
impl !Send for oboe_AudioStreamCallback
impl !Sync for oboe_AudioStreamCallback
impl Unpin for oboe_AudioStreamCallback
impl UnwindSafe for oboe_AudioStreamCallback
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more