[][src]Struct oboe_sys::oboe_AudioStreamCallback

#[repr(C)]pub struct oboe_AudioStreamCallback {
    pub _base: oboe_AudioStreamDataCallback,
    pub _base_1: oboe_AudioStreamErrorCallback,
}

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().

@deprecated Use AudioStreamDataCallback and AudioStreamErrorCallback instead

Fields

_base: oboe_AudioStreamDataCallback_base_1: oboe_AudioStreamErrorCallback

Trait Implementations

impl Debug for oboe_AudioStreamCallback[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.