Alexander Whitestone
|
559ee5b619
|
feat: add ambient audio and notification sounds via Web Audio API
- New js/audio.js: synthesized ambient drone (A-minor, 4 oscillators) +
lookahead arpeggio scheduler; notification chime on job completion
- Ambient music starts on first user interaction (browser autoplay policy)
- Muted by default on touch/mobile; volume + mute persisted in localStorage
- Audio controls widget (♪ mute button + volume slider) added to HUD overlay
- websocket.js: playNotification() fires on every job_completed event
- ui.js: initAudioControls() wires mute toggle and volume slider
- main.js: initAudio() called during firstInit
Fixes #5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 14:07:09 -04:00 |
|