add scope for debugging

This commit is contained in:
2026-06-22 21:07:13 -07:00
parent c6f567535b
commit ed27ab166c
8 changed files with 156 additions and 1 deletions
+11
View File
@@ -84,6 +84,16 @@ public final class ShoeGaze {
/// (same module, different file) can mutate it.
internal var recordTaps: [RecordTap] = []
// MARK: - Scope state
/// Scope tap over the hardware input + output buses, feeding the debug scope view.
///
/// Rebuilt by ``installScopeTap(bufferSize:)`` whenever the engine layout changes (so the
/// tapped bus indices follow the current input/output channel counts). `nil` until first
/// installed. The setter is `internal` so ``installScopeTap(bufferSize:)`` (same module,
/// different file) can assign it; external callers observe it through this `public` getter.
public internal(set) var scopeTap: ScopeCapture?
// MARK: - Private
private var testLoopSources: [TestLoopSource] = []
@@ -110,6 +120,7 @@ public final class ShoeGaze {
) {
self.engine = engine
self.inputSource = inputSource
installScopeTap()
}
// MARK: - Board management