pub struct RealTimeAudioContextOptions {
pub sample_rate: f32,
pub latency_hint: LatencyCategory,
}
Expand description
User-specified options for a real time audio context.
Fields§
§sample_rate: f32
Number of samples that will play in one second, measured in Hz.
latency_hint: LatencyCategory
Type of playback.
Trait Implementations§
source§impl Clone for RealTimeAudioContextOptions
impl Clone for RealTimeAudioContextOptions
source§fn clone(&self) -> RealTimeAudioContextOptions
fn clone(&self) -> RealTimeAudioContextOptions
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 From<RealTimeAudioContextOptions> for AudioContextOptions
impl From<RealTimeAudioContextOptions> for AudioContextOptions
source§fn from(options: RealTimeAudioContextOptions) -> Self
fn from(options: RealTimeAudioContextOptions) -> Self
Converts to this type from the input type.
impl Copy for RealTimeAudioContextOptions
Auto Trait Implementations§
impl Freeze for RealTimeAudioContextOptions
impl RefUnwindSafe for RealTimeAudioContextOptions
impl Send for RealTimeAudioContextOptions
impl Sync for RealTimeAudioContextOptions
impl Unpin for RealTimeAudioContextOptions
impl UnwindSafe for RealTimeAudioContextOptions
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