pub struct FirewheelConfig {
pub num_graph_inputs: ChannelCount,
pub num_graph_outputs: ChannelCount,
pub hard_clip_outputs: bool,
pub initial_node_capacity: u32,
pub initial_edge_capacity: u32,
pub declick_seconds: f32,
pub initial_event_group_capacity: u32,
pub channel_capacity: u32,
pub event_queue_capacity: u32,
}Expand description
The configuration of a Firewheel context.
Fields§
§num_graph_inputs: ChannelCountThe number of input channels in the audio graph.
num_graph_outputs: ChannelCountThe number of output channels in the audio graph.
hard_clip_outputs: boolIf true, then all outputs will be hard clipped at 0db to help
protect the system’s speakers.
Note that most operating systems already hard clip the output, so this is usually not needed (TODO: Do research to see if this assumption is true.)
By default this is set to false.
initial_node_capacity: u32An initial capacity to allocate for the nodes in the audio graph.
By default this is set to 64.
initial_edge_capacity: u32An initial capacity to allocate for the edges in the audio graph.
By default this is set to 256.
declick_seconds: f32The amount of time in seconds to fade in/out when pausing/resuming to avoid clicks and pops.
By default this is set to 10.0 / 1_000.0.
initial_event_group_capacity: u32The initial capacity for a group of events.
By default this is set to 128.
channel_capacity: u32The capacity of the engine’s internal message channel.
By default this is set to 64.
event_queue_capacity: u32The capacity of an event queue in the engine (one event queue per node).
By default this is set to 128.
Trait Implementations§
Source§impl Clone for FirewheelConfig
impl Clone for FirewheelConfig
Source§fn clone(&self) -> FirewheelConfig
fn clone(&self) -> FirewheelConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more