pub enum AudioContextLatencyCategory {
Balanced,
Interactive,
Playback,
Custom(f64),
}
Expand description
Identify the type of playback, which affects tradeoffs between audio output latency and power consumption
Variants§
Balanced
Balance audio output latency and power consumption.
Interactive
Provide the lowest audio output latency possible without glitching. This is the default.
Playback
Prioritize sustained playback without interruption over audio output latency.
Lowest power consumption.
Custom(f64)
Specify the number of seconds of latency
This latency is not guaranteed to be applied, it depends on the audio hardware capabilities
Trait Implementations§
Source§impl Clone for AudioContextLatencyCategory
impl Clone for AudioContextLatencyCategory
Source§fn clone(&self) -> AudioContextLatencyCategory
fn clone(&self) -> AudioContextLatencyCategory
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 AudioContextLatencyCategory
impl Debug for AudioContextLatencyCategory
impl Copy for AudioContextLatencyCategory
Auto Trait Implementations§
impl Freeze for AudioContextLatencyCategory
impl RefUnwindSafe for AudioContextLatencyCategory
impl Send for AudioContextLatencyCategory
impl Sync for AudioContextLatencyCategory
impl Unpin for AudioContextLatencyCategory
impl UnwindSafe for AudioContextLatencyCategory
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