pub struct BaseAudioContextBuilder { /* private fields */ }Expand description
Builder for BaseAudioContext.
Implementations§
Source§impl BaseAudioContextBuilder
impl BaseAudioContextBuilder
pub fn context_id<VALUE: Into<GraphObjectId>>( &mut self, value: VALUE, ) -> &mut Self
pub fn context_type<VALUE: Into<ContextType>>( &mut self, value: VALUE, ) -> &mut Self
pub fn context_state<VALUE: Into<ContextState>>( &mut self, value: VALUE, ) -> &mut Self
pub fn realtime_data<VALUE: Into<ContextRealtimeData>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn callback_buffer_size<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn callback_buffer_size<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Platform-dependent callback buffer size.
Sourcepub fn max_output_channel_count<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn max_output_channel_count<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Number of output channels supported by audio hardware in use.
Sourcepub fn sample_rate<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn sample_rate<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Context sample rate.
Sourcepub fn build(&self) -> Result<BaseAudioContext, BaseAudioContextBuilderError>
pub fn build(&self) -> Result<BaseAudioContext, BaseAudioContextBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for BaseAudioContextBuilder
impl RefUnwindSafe for BaseAudioContextBuilder
impl Send for BaseAudioContextBuilder
impl Sync for BaseAudioContextBuilder
impl Unpin for BaseAudioContextBuilder
impl UnsafeUnpin 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