[][src]Struct oboe_sys::oboe_LatencyTuner

#[repr(C)]
#[repr(align(8))]pub struct oboe_LatencyTuner {
    pub _bindgen_opaque_blob: [u64; 5],
}

LatencyTuner can be used to dynamically tune the latency of an output stream. It adjusts the stream's bufferSize by monitoring the number of underruns.

This only affects the latency associated with the first level of buffering that is closest to the application. It does not affect low latency in the HAL, or touch latency in the UI.

Call tune() right before returning from your data callback function if using callbacks. Call tune() right before calling write() if using blocking writes.

If you want to see the ongoing results of this tuning process then call stream->getBufferSize() periodically.

Fields

_bindgen_opaque_blob: [u64; 5]

Implementations

impl oboe_LatencyTuner[src]

pub unsafe fn tune(&mut self) -> oboe_Result[src]

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

pub unsafe fn isAtMaximumBufferSize(&mut self) -> bool[src]

pub unsafe fn new(stream: *mut oboe_AudioStream) -> Self[src]

pub unsafe fn new1(
    stream: *mut oboe_AudioStream,
    maximumBufferSize: i32
) -> Self
[src]

Trait Implementations

impl Clone for oboe_LatencyTuner[src]

impl Copy for oboe_LatencyTuner[src]

impl Debug for oboe_LatencyTuner[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.