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.