#[repr(C, align(4))]pub struct oboe_LatencyTuner {
pub _bindgen_opaque_blob: [u32; 9],
}
Expand description
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: [u32; 9]
Implementations§
Source§impl oboe_LatencyTuner
impl oboe_LatencyTuner
pub unsafe fn tune(&mut self) -> oboe_Result
pub unsafe fn requestReset(&mut self)
pub unsafe fn isAtMaximumBufferSize(&mut self) -> bool
pub unsafe fn new(stream: *mut oboe_AudioStream) -> Self
pub unsafe fn new1( stream: *mut oboe_AudioStream, maximumBufferSize: i32, ) -> Self
Trait Implementations§
Source§impl Clone for oboe_LatencyTuner
impl Clone for oboe_LatencyTuner
Source§fn clone(&self) -> oboe_LatencyTuner
fn clone(&self) -> oboe_LatencyTuner
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for oboe_LatencyTuner
impl Debug for oboe_LatencyTuner
impl Copy for oboe_LatencyTuner
Auto Trait Implementations§
impl Freeze for oboe_LatencyTuner
impl RefUnwindSafe for oboe_LatencyTuner
impl Send for oboe_LatencyTuner
impl Sync for oboe_LatencyTuner
impl Unpin for oboe_LatencyTuner
impl UnwindSafe for oboe_LatencyTuner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more