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

Method construct_processor

crates/firewheel-nodes/src/peak_meter.rs:227–240  ·  view source on GitHub ↗
(
        &self,
        _config: &Self::Configuration,
        cx: ConstructProcessorContext,
    )

Source from the content-addressed store, hash-verified

225 }
226
227 fn construct_processor(
228 &self,
229 _config: &Self::Configuration,
230 cx: ConstructProcessorContext,
231 ) -> Result<impl AudioNodeProcessor, NodeError> {
232 Ok(Processor {
233 params: *self,
234 shared_state: Arc::clone(
235 &cx.custom_state::<PeakMeterState<NUM_CHANNELS>>()
236 .unwrap()
237 .shared_state,
238 ),
239 })
240 }
241}
242
243struct SharedState<const NUM_CHANNELS: usize> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected