| 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))] |
| 30 | pub 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`]. |
nothing calls this directly
no outgoing calls
no test coverage detected