Struct web_audio_api::AudioBufferOptions
source · pub struct AudioBufferOptions {
pub number_of_channels: usize,
pub length: usize,
pub sample_rate: f32,
}
Expand description
Options for constructing an AudioBuffer
Fields§
§number_of_channels: usize
The number of channels for the buffer
length: usize
The length in sample frames of the buffer
sample_rate: f32
The sample rate in Hz for the buffer
Trait Implementations§
source§impl Clone for AudioBufferOptions
impl Clone for AudioBufferOptions
source§fn clone(&self) -> AudioBufferOptions
fn clone(&self) -> AudioBufferOptions
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