pub struct BaseAudioContextBuilder { /* private fields */ }Available on crate features
experimental and WebAudio only.Implementations§
Source§impl BaseAudioContextBuilder
impl BaseAudioContextBuilder
pub fn context_id(&mut self, v: GraphObjectId) -> &mut Self
pub fn context_type(&mut self, v: ContextType) -> &mut Self
pub fn context_state(&mut self, v: ContextState) -> &mut Self
pub fn realtime_data(&mut self, v: ContextRealtimeData) -> &mut Self
Sourcepub fn callback_buffer_size(&mut self, v: f64) -> &mut Self
pub fn callback_buffer_size(&mut self, v: f64) -> &mut Self
Platform-dependent callback buffer size.
Sourcepub fn max_output_channel_count(&mut self, v: f64) -> &mut Self
pub fn max_output_channel_count(&mut self, v: f64) -> &mut Self
Number of output channels supported by audio hardware in use.
Sourcepub fn sample_rate(&mut self, v: f64) -> &mut Self
pub fn sample_rate(&mut self, v: f64) -> &mut Self
Context sample rate.
pub fn build(&mut self) -> Result<BaseAudioContext, &'static str>
Trait Implementations§
Source§impl Clone for BaseAudioContextBuilder
impl Clone for BaseAudioContextBuilder
Source§fn clone(&self) -> BaseAudioContextBuilder
fn clone(&self) -> BaseAudioContextBuilder
Returns a duplicate 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 Debug for BaseAudioContextBuilder
impl Debug for BaseAudioContextBuilder
Auto Trait Implementations§
impl Freeze for BaseAudioContextBuilder
impl RefUnwindSafe for BaseAudioContextBuilder
impl Send for BaseAudioContextBuilder
impl Sync for BaseAudioContextBuilder
impl Unpin for BaseAudioContextBuilder
impl UnwindSafe for BaseAudioContextBuilder
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