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
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user