pub struct WebAudioConfig {
pub sample_rate: Option<NonZeroU32>,
pub request_input: bool,
}
Expand description
The Web Audio backend’s configuration.
Fields§
§sample_rate: Option<NonZeroU32>
The desired sample rate.
If no sample rate is requested, it will be selected automatically by the Web Audio API.
request_input: bool
Ask the browser to request an input device, allowing the user to supply a microphone or other input.
When set to true
, the
FirewheelConfig::num_graph_inputs
field must be set to ChannelCount::STEREO
.
If input is not requested, the Firewheel graph inputs will be silent.
Trait Implementations§
Source§impl Clone for WebAudioConfig
impl Clone for WebAudioConfig
Source§fn clone(&self) -> WebAudioConfig
fn clone(&self) -> WebAudioConfig
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 WebAudioConfig
impl Debug for WebAudioConfig
Source§impl Default for WebAudioConfig
impl Default for WebAudioConfig
Source§fn default() -> WebAudioConfig
fn default() -> WebAudioConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebAudioConfig
impl RefUnwindSafe for WebAudioConfig
impl Send for WebAudioConfig
impl Sync for WebAudioConfig
impl Unpin for WebAudioConfig
impl UnwindSafe for WebAudioConfig
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