[][src]Struct oboe_sys::oboe_AudioStreamBase

#[repr(C)]pub struct oboe_AudioStreamBase {
    pub vtable_: *const oboe_AudioStreamBase__bindgen_vtable,
    pub mDataCallback: *mut oboe_AudioStreamDataCallback,
    pub mErrorCallback: *mut oboe_AudioStreamErrorCallback,
    pub mFramesPerCallback: i32,
    pub mChannelCount: i32,
    pub mSampleRate: i32,
    pub mDeviceId: i32,
    pub mBufferCapacityInFrames: i32,
    pub mBufferSizeInFrames: i32,
    pub mFramesPerBurst: i32,
    pub mSharingMode: oboe_SharingMode,
    pub mFormat: oboe_AudioFormat,
    pub mDirection: oboe_Direction,
    pub mPerformanceMode: oboe_PerformanceMode,
    pub mUsage: oboe_Usage,
    pub mContentType: oboe_ContentType,
    pub mInputPreset: oboe_InputPreset,
    pub mSessionId: oboe_SessionId,
    pub mChannelConversionAllowed: bool,
    pub mFormatConversionAllowed: bool,
    pub mSampleRateConversionQuality: oboe_SampleRateConversionQuality,
}

Base class containing parameters for audio streams and builders.

Fields

vtable_: *const oboe_AudioStreamBase__bindgen_vtablemDataCallback: *mut oboe_AudioStreamDataCallback

The callback which will be fired when new data is ready to be read/written.

mErrorCallback: *mut oboe_AudioStreamErrorCallback

The callback which will be fired when an error or a disconnect occurs.

mFramesPerCallback: i32

Number of audio frames which will be requested in each callback

mChannelCount: i32

Stream channel count

mSampleRate: i32

Stream sample rate

mDeviceId: i32

Stream audio device ID

mBufferCapacityInFrames: i32

Stream buffer capacity specified as a number of audio frames

mBufferSizeInFrames: i32

Stream buffer size specified as a number of audio frames

mFramesPerBurst: i32

Number of frames which will be copied to/from the audio device in a single read/write operation

mSharingMode: oboe_SharingMode

Stream sharing mode

mFormat: oboe_AudioFormat

Format of audio frames

mDirection: oboe_Direction

Stream direction

mPerformanceMode: oboe_PerformanceMode

Stream performance mode

mUsage: oboe_Usage

Stream usage. Only active on Android 28+

mContentType: oboe_ContentType

Stream content type. Only active on Android 28+

mInputPreset: oboe_InputPreset

Stream input preset. Only active on Android 28+ TODO InputPreset::Unspecified should be considered as a possible default alternative.

mSessionId: oboe_SessionId

Stream session ID allocation strategy. Only active on Android 28+

mChannelConversionAllowed: boolmFormatConversionAllowed: boolmSampleRateConversionQuality: oboe_SampleRateConversionQuality

Trait Implementations

impl Debug for oboe_AudioStreamBase[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.