mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-10-19 17:45:01 +00:00
fix(audio): start the focus music oscillator sources
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
@@ -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();
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user