Skip to content

feat: play the menu ambience on the title from the first gesture - #183

Merged
r4mbo7 merged 2 commits into
mainfrom
issue-181-musique-ecran-titre
Oct 5, 2026
Merged

r4mbo7 merged 2 commits into
mainfrom
issue-181-musique-ecran-titre

Conversation

@r4mbo7

@r4mbo7 r4mbo7 commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Closes #181
Closes #179

Cause: the title was muted on purpose in soundOf, and no AudioContext was created before Jouer, Jouer ensemble or the online lobby (checked on the deployed site: zero contexts, even after a key press).

  • The title plays the menu ambience, which already fades into the set at launch. The sound switch and the hidden tab still silence it.
  • The first click, key or pad button opens the audio.
  • The master chain opens muted when the sound is off, so no blip before the first ramp.
  • Tests: soundOf unit test, and e2e/title-music.spec.ts (context running and output gain at 1 after a first key; gain 0 with the sound off). Both failed before the fix.

Title ambience, 20 s: https://github.com/r4mbo7/Ozoboom/blob/pr-assets/issue-181/ecran-titre-20s.mp3 (WAV next to it).

@r4mbo7
r4mbo7 merged commit 2e8df68 into main Oct 5, 2026
11 checks passed
@r4mbo7
r4mbo7 deleted the issue-181-musique-ecran-titre branch October 5, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audio : de la musique dès l'écran titre [Avis] pas de son sur la page d'accueil

1 participant