Add featured Dark House track with default landing ambient playback
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled

Wire featured-dark-house-2025.mp3 as the default ambient source, enable BGM for first-time visitors, and attempt autoplay on Command Deck with gesture-unlock fallback. The ~57MB MP3 stays gitignored; copy instructions are in public/audio/.gitkeep.
This commit is contained in:
AetherForge
2026-06-07 03:56:47 -07:00
parent 5c6913dc5f
commit ab143fbfd2
7 changed files with 42 additions and 17 deletions

View File

@@ -63,6 +63,10 @@ export function AmbientMusicProvider({ children }: { children: React.ReactNode }
return ambientMusicPlayer.subscribe(setPlaying);
}, []);
useEffect(() => {
if (enabled) void ambientMusicPlayer.tryPlay();
}, []);
useEffect(() => {
ambientMusicPlayer.setEnabled(enabled);
ambientMusicPlayer.setVolume(volume);