pub struct OfflineAudioContextOptions {
pub channels: u8,
pub length: usize,
pub sample_rate: f32,
}
Expand description
User-specified options for an offline audio context.
Fields§
§channels: u8
The number of channels for this offline audio context.
length: usize
The length of the rendered audio buffer in sample-frames.
sample_rate: f32
Number of samples that will be rendered in one second, measured in Hz.
Trait Implementations§
source§impl Clone for OfflineAudioContextOptions
impl Clone for OfflineAudioContextOptions
source§fn clone(&self) -> OfflineAudioContextOptions
fn clone(&self) -> OfflineAudioContextOptions
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 Default for OfflineAudioContextOptions
impl Default for OfflineAudioContextOptions
source§impl From<OfflineAudioContextOptions> for AudioContextOptions
impl From<OfflineAudioContextOptions> for AudioContextOptions
source§fn from(options: OfflineAudioContextOptions) -> Self
fn from(options: OfflineAudioContextOptions) -> Self
Converts to this type from the input type.
impl Copy for OfflineAudioContextOptions
Auto Trait Implementations§
impl Freeze for OfflineAudioContextOptions
impl RefUnwindSafe for OfflineAudioContextOptions
impl Send for OfflineAudioContextOptions
impl Sync for OfflineAudioContextOptions
impl Unpin for OfflineAudioContextOptions
impl UnwindSafe for OfflineAudioContextOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)