From 7c0e8cef99c8dc8f3d6703e44f2ae285973aec83 Mon Sep 17 00:00:00 2001 From: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> Date: Fri, 2 Oct 2026 23:09:32 -0400 Subject: [PATCH] fix(audio): start the focus music oscillator sources Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> --- specialized/specialized-focus-music-architect.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specialized/specialized-focus-music-architect.md b/specialized/specialized-focus-music-architect.md index d6aa0efd..3722c2ae 100644 --- a/specialized/specialized-focus-music-architect.md +++ b/specialized/specialized-focus-music-architect.md @@ -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(); ``` ---