File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,9 @@ async fn init() -> anyhow::Result<()> {
170170 ) ;
171171 }
172172
173+ // Pause state (stops scheduling new notes but keeps rendering). Start paused until overlay OK/Close.
174+ let paused = Rc :: new ( RefCell :: new ( true ) ) ;
175+
173176 // Wire OK / Close to hide overlay and start scheduling (unpause) + resume AudioContext
174177 if let Some ( doc2) = web:: window ( ) . and_then ( |w| w. document ( ) ) {
175178 if let Some ( ok_btn) = doc2. get_element_by_id ( "overlay-ok" ) {
@@ -483,8 +486,6 @@ async fn init() -> anyhow::Result<()> {
483486 analyser_buf. borrow_mut ( ) . resize ( bins, 0.0 ) ;
484487 }
485488
486- // Pause state (stops scheduling new notes but keeps rendering). Start paused until overlay OK/Close.
487- let paused = Rc :: new ( RefCell :: new ( true ) ) ;
488489 let voice_gains = Rc :: new ( voice_gains) ;
489490
490491 // Queued ripple UV from pointer taps (read by render tick)
You can’t perform that action at this time.
0 commit comments