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 Freeze for AudioBufferOptions
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