fix(sound): stop play-scene via doStopAll
CI build oscope-of / build-check (push) Has been cancelled
CI build oscope-of / build-check (push) Has been cancelled
Final whole-branch review caught a cross-task defect: ~doScenePlay started ~bpEngine but registered no cleanup, so ~doStopAll (run by ~doScene at every scene switch, and by \stop) never stopped the engine -- body-play kept playing over any other scene, breaking the "\stop coupe tout" contract. Register the stop via ~doRegisterPriv (name, killFn) like every other scene. Verified on macm1: doScene(\play) starts the engine, doScene(\stop) stops it.
This commit is contained in:
@@ -163,7 +163,7 @@
|
||||
);
|
||||
|
||||
// -- 7) Enregistrement scene -------------------------------------------
|
||||
~doScenePlay = { ~bpEngine[\start].() };
|
||||
~doScenePlay = { ~bpEngine[\start].(); ~doRegisterPriv.(\play, { ~bpEngine[\stop].() }) };
|
||||
|
||||
"[data-only/scene_pose_play] modes + scale ready".postln;
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user