You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,3 +12,11 @@
12
12
- Write clear, readable code with descriptive names for variables, functions, and classes.
13
13
- Maintain consistency with the existing codebase style and patterns.
14
14
- Consider maintainability and future developers who will read the code.
15
+
16
+
## Audio Graph Architecture
17
+
18
+
-**IONodes** (audio/MIDI input/output) require a parent `GraphNode` to be set before ports can be properly initialized.
19
+
-`IONode::refreshPorts()` queries the parent graph's port count via `graph->getNumPorts()`. If the parent is null or has zero ports, the IONode will have zero ports.
20
+
- When adding IONodes, ensure the parent graph has a valid port count first using `graph->setNumPorts()`.
21
+
- Default port counts: 2 channels for audio (stereo), 1 channel for MIDI.
0 commit comments