[−][src]Struct oboe_sys::oboe_AudioStream
Base class for Oboe C++ audio stream.
Fields
_base: oboe_AudioStreamBase
mFramesWritten: 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_mutex
mPreviousScheduler: c_int
mDataCallbackEnabled: std_atomic
mErrorCallbackCalled: 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]
&mut self,
numFrames: i32,
timeoutNanoseconds: i64
) -> oboe_ResultWithValue<i32>
pub unsafe fn fireDataCallback(
&mut self,
audioData: *mut c_void,
numFrames: c_int
) -> oboe_DataCallbackResult
[src]
&mut self,
audioData: *mut c_void,
numFrames: c_int
) -> oboe_DataCallbackResult
pub unsafe fn new(builder: *const oboe_AudioStreamBuilder) -> Self
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for oboe_AudioStream
impl !Send for oboe_AudioStream
impl !Sync for oboe_AudioStream
impl Unpin for oboe_AudioStream
impl UnwindSafe for oboe_AudioStream
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,