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

Interface DynAudioNode

crates/firewheel-core/src/node.rs:423–445  ·  view source on GitHub ↗

A type-erased dyn-compatible [`AudioNode`].

Source from the content-addressed store, hash-verified

421
422/// A type-erased dyn-compatible [`AudioNode`].
423pub trait DynAudioNode {
424 /// Get information about this node.
425 ///
426 /// This method is only called once after the node is added to the audio graph.
427 fn info(&self) -> Result<AudioNodeInfo, NodeError>;
428
429 /// Construct a realtime processor for this node.
430 ///
431 /// * `cx` - A context for interacting with the Firewheel context. This context
432 /// also includes information about the audio stream.
433 fn construct_processor(
434 &self,
435 cx: ConstructProcessorContext,
436 ) -> Result<Box<dyn AudioNodeProcessor>, NodeError>;
437
438 /// If [`AudioNodeInfo::call_update_method`] was set to `true`, then the Firewheel
439 /// context will call this method on every update cycle.
440 ///
441 /// * `cx` - A context for interacting with the Firewheel context.
442 fn update(&mut self, cx: UpdateContext) {
443 let _ = cx;
444 }
445}
446
447/// Pairs constructors with their configurations.
448///

Callers

nothing calls this directly

Implementers 1

node.rscrates/firewheel-core/src/node.rs

Calls

no outgoing calls

Tested by

no test coverage detected