MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / ConvolutionNodeConfig

Class ConvolutionNodeConfig

crates/firewheel-nodes/src/convolution.rs:29–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#[cfg_attr(feature = "bevy", derive(bevy_ecs::prelude::Component))]
28#[cfg_attr(feature = "bevy_reflect", derive(bevy_reflect::Reflect))]
29#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
30pub struct ConvolutionNodeConfig {
31 /// The number of channels in this node.
32 ///
33 /// By default this is set to [`NonZeroChannelCount::STEREO`].
34 pub channels: NonZeroChannelCount,
35
36 /// The maximum length of an impulse response in seconds this node can
37 /// hold.
38 ///
39 /// By default this is set to `4.0`.
40 pub max_impulse_length_seconds: f64,
41
42 /// Smaller blocks may reduce latency at the cost of increased CPU usage.
43 ///
44 /// By default this is set to `1024`.
45 pub partition_size: usize,
46}
47
48/// The default partition size to use with a [`ConvolutionNode`].

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected