fix(audio): start the focus music oscillator sources

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Celekli
2026-10-02 23:09:32 -04:00
parent d3f71c4bb8
commit 7c0e8cef99
@@ -120,9 +120,12 @@ const panRight = audioCtx.createStereoPanner();
oscRight.frequency.value = 210.0;
panRight.pan.value = 1.0;
// Connect & Start
// Invoke from a user gesture (e.g. a Play button); resume the context if it
// is suspended by the browser's autoplay policy. Connections alone are silent.
oscLeft.connect(panLeft).connect(audioCtx.destination);
oscRight.connect(panRight).connect(audioCtx.destination);
oscLeft.start();
oscRight.start();
```
---