The audio graph interface.
| 42 | |
| 43 | /// The audio graph interface. |
| 44 | pub(crate) struct AudioGraph { |
| 45 | nodes: Arena<NodeEntry>, |
| 46 | edges: Arena<Edge>, |
| 47 | existing_edges: HashMap<EdgeHash, EdgeID>, |
| 48 | |
| 49 | graph_in_id: NodeID, |
| 50 | graph_out_id: NodeID, |
| 51 | graph_channel_config: ChannelConfig, |
| 52 | needs_compile: bool, |
| 53 | |
| 54 | nodes_to_remove_from_schedule: Vec<NodeID>, |
| 55 | active_nodes_to_remove: HashMap<NodeID, NodeEntry>, |
| 56 | nodes_to_call_update_method: Vec<NodeID>, |
| 57 | |
| 58 | prev_node_arena_capacity: usize, |
| 59 | prev_buffer_capacity: usize, |
| 60 | |
| 61 | modify_guard_stack: Vec<ModifyGraphGuard>, |
| 62 | } |
| 63 | |
| 64 | impl AudioGraph { |
| 65 | pub fn new(config: &FirewheelConfig) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected