Looper: also reset on rig teardown
Add a Pedal.rigWillTeardown() hook fired for every pedal at the top of ShoeGaze.teardown() (rig load / clear / input-source change), while the pedal is still live. LooperPedal resets and posts a notice, sharing the path with engineDidStop() — so a looper stops its background routines cleanly and logs before its instance is discarded across a rig change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -674,6 +674,13 @@ public final class ShoeGaze {
|
||||
// board buses they reference are released.
|
||||
stopRecording()
|
||||
|
||||
// Notify pedals the rig is being torn down (rig load / clear / input-source change), so
|
||||
// stateful pedals like the looper stop their background routines cleanly and post a
|
||||
// notice before their instances are discarded.
|
||||
for pedal: Pedal in allPedals() {
|
||||
pedal.rigWillTeardown()
|
||||
}
|
||||
|
||||
// Step 1: Remove all engine nodes that write to board buses.
|
||||
// Order within this step does not matter; all must finish before bus release.
|
||||
for tap: TestLoopTap in testLoopTaps {
|
||||
|
||||
Reference in New Issue
Block a user