A type-erased dyn-compatible [`AudioNode`].
| 421 | |
| 422 | /// A type-erased dyn-compatible [`AudioNode`]. |
| 423 | pub 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 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected