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

Method num_inputs

examples/visual_node_graph/src/ui.rs:121–143  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

119 }
120
121 fn num_inputs(&self) -> usize {
122 match self.node {
123 GuiAudioNodeType::SystemIn => 0,
124 GuiAudioNodeType::SystemOut => 2,
125 GuiAudioNodeType::BeepTest { .. } => 0,
126 GuiAudioNodeType::WhiteNoiseGen { .. } => 0,
127 GuiAudioNodeType::PinkNoiseGen { .. } => 0,
128 GuiAudioNodeType::StereoToMono => 2,
129 GuiAudioNodeType::VolumeMono { .. } => 1,
130 GuiAudioNodeType::VolumeStereo { .. } => 2,
131 GuiAudioNodeType::VolumePan { .. } => 2,
132 GuiAudioNodeType::FastLowpass { .. } => 2,
133 GuiAudioNodeType::FastHighpass { .. } => 2,
134 GuiAudioNodeType::FastBandpass { .. } => 2,
135 GuiAudioNodeType::Svf { .. } => 2,
136 GuiAudioNodeType::MixMono { .. } => 2,
137 GuiAudioNodeType::MixStereo { .. } => 4,
138 GuiAudioNodeType::Sampler { .. } => 0,
139 GuiAudioNodeType::Freeverb { .. } => 2,
140 GuiAudioNodeType::ConvolutionMono { .. } => 1,
141 GuiAudioNodeType::ConvolutionStereo { .. } => 2,
142 }
143 }
144
145 fn num_outputs(&self) -> usize {
146 match self.node {

Callers 1

inputsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected