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 moreAuto Trait Implementations§
impl RefUnwindSafe for AudioBufferOptions
impl Send for AudioBufferOptions
impl Sync for AudioBufferOptions
impl Unpin for AudioBufferOptions
impl UnwindSafe for AudioBufferOptions
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