Struct oboe_sys::oboe_LatencyTuner
source · 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 more