feat(audio): music off by default — sound effects only
CI/CD / CI - API (dotnet build + engine sim) (push) Successful in 2m33s
CI/CD / CI - Web (tsc + next build) (push) Successful in 1m11s
CI/CD / Deploy - local stack (db + server + web) (push) Successful in 2m14s

Background music now defaults to OFF; the default experience is SFX only.
Players can still enable music (santoor track) in Profile → settings.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-17 00:36:23 +03:30
parent 23b3713b44
commit e5b48ecb26
+3 -1
View File
@@ -36,7 +36,9 @@ class SoundManager {
private step = 0; private step = 0;
sfxEnabled = loadBool(LS_SFX); sfxEnabled = loadBool(LS_SFX);
musicEnabled = loadBool(LS_MUSIC); // Music is OFF by default — the default experience is sound effects only.
// Players can switch background music on in Profile → settings.
musicEnabled = loadBool(LS_MUSIC, false);
musicTrack: MusicTrack = musicTrack: MusicTrack =
(typeof window !== "undefined" && (localStorage.getItem(LS_TRACK) as MusicTrack)) || "santoor"; (typeof window !== "undefined" && (localStorage.getItem(LS_TRACK) as MusicTrack)) || "santoor";