[][src]Struct oboe_sys::oboe_AudioStream

#[repr(C)]
pub struct oboe_AudioStream {
    pub _base: oboe_AudioStreamBase,
    pub mFramesWritten: std_atomic,
    pub mFramesRead: std_atomic,
    pub mLock: std_mutex,
    pub mPreviousScheduler: c_int,
    pub mDataCallbackEnabled: std_atomic,
    pub mErrorCallbackCalled: std_atomic,
}

Base class for Oboe C++ audio stream.

Fields

_base: oboe_AudioStreamBasemFramesWritten: std_atomic

Number of frames which have been written into the stream

This is signed integer to match the counters in AAudio. At audio rates, the counter will overflow in about six million years.

mFramesRead: std_atomic

Number of frames which have been read from the stream.

This is signed integer to match the counters in AAudio. At audio rates, the counter will overflow in about six million years.

mLock: std_mutexmPreviousScheduler: c_intmDataCallbackEnabled: std_atomicmErrorCallbackCalled: std_atomic

Methods

impl oboe_AudioStream[src]

pub unsafe fn getBytesPerSample(&self) -> i32[src]

pub unsafe fn launchStopThread(&mut self)[src]

pub unsafe fn getAvailableFrames(&mut self) -> oboe_ResultWithValue<i32>[src]

pub unsafe fn waitForAvailableFrames(
    &mut self,
    numFrames: i32,
    timeoutNanoseconds: i64
) -> oboe_ResultWithValue<i32>
[src]

pub unsafe fn fireDataCallback(
    &mut self,
    audioData: *mut c_void,
    numFrames: c_int
) -> oboe_DataCallbackResult
[src]

pub unsafe fn new(builder: *const oboe_AudioStreamBuilder) -> Self[src]

Trait Implementations

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