Skip to content

Add admin-managed Naruto audio, theme-only mute, and 20-second dialogue gaps - #21

Merged
modhack2003 merged 3 commits into
mainfrom
feat/original-naruto-audio
Oct 15, 2026
Merged

modhack2003 merged 3 commits into
mainfrom
feat/original-naruto-audio

Conversation

@modhack2003

@modhack2003 modhack2003 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Adds the owner's Naruto theme, Sharingan transformation recording, and all nine approved dialogue clips while preserving the portfolio content and visuals.

The public page now has exactly one audio control: an icon button that mutes/unmutes the visitor's theme music only. Dialogue and Sharingan effects remain active. Browser-local volume overrides from the older draft are ignored.

Playback defaults:

  • Theme 75%, dialogue/quotes 100%, Sharingan effects 95%.
  • Theme attempts autoplay on load, fades from silence to its configured level over 4 seconds, and holds there while looping. When a browser blocks autoplay, the first pointer/key interaction unlocks the same mixer.
  • The first automatic dialogue waits 20 seconds. Subsequent dialogues wait 20 seconds after the prior recording ends, so short and long recordings receive the same gap. Voices continue over the looping theme. An output compressor reduces combined-channel peaks.
  • Background tabs suspend playback; returning starts a new dialogue gap. Typing or other active HTML media defers quotes.

The authenticated dashboard's Site audio section contains channel levels, gap, fade duration, automatic-dialogue toggle, and all nine per-clip enable switches and preview players. PUT /api/site-audio requires the existing admin session and strictly validates numeric ranges and playlist IDs. Shared settings persist in a MongoDB SiteAudioConfig singleton, created on the first admin save. Public GET returns only playback settings; open pages refresh within one minute, and the saving tab refreshes immediately. Failed admin loads cannot overwrite unknown settings with defaults.

Audio assets include the supplied theme with a circular crossfade, trimmed supplied transformation effect, normal-eye return effect, and nine cleaned dialogue files. Credits and processing measurements are in public/audio. Embedded source music/artifacts may remain; no generated voices or replacement music were used.

Validation:

  • 34 Jest suites / 360 tests pass, including authorization/validation/persistence contracts, all playlist assets, public/admin UI separation, theme-only mute, autoplay unlock, and 3-second / 23-second recordings followed by a full 20-second gap.
  • TypeScript, targeted ESLint, production build, and git diff checks pass. Build used the existing empty-data fallback without production database credentials.
  • Chromium component fixture used the actual bundled public/admin components, real Web Audio, and real MP3 files. Verified 4-second fade to 75%, dialogue 100%, effects 95%, theme mute preserving dialogue/effects, all nine recordings decoding, and an observed 20.059-second completion-to-next-start gap. Admin form save/read was verified against a fixture API; live MongoDB writes were not exercised.
  • Actual iOS/Safari device listening remains untested. The earlier Vercel preview's sign-in protection rejected the connector's temporary access link; protection has not been changed.

Latest commit: c0fa431.
Deferred portfolio improvements remain in #20.

Vercel preview for this commit: READY — https://bikram-ig86qyru3-modhack2003s-projects.vercel.app . Production updates when this PR is merged.

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
bikram Ready Ready Preview Oct 15, 2026 12:46pm UTC

@modhack2003 modhack2003 changed the title Add Naruto audio controls and Sharingan effects — awaiting original theme Add Naruto theme loop, nine dialogue clips, and Sharingan sound effects Oct 15, 2026
@modhack2003
modhack2003 marked this pull request as ready for review October 15, 2026 08:22
@modhack2003 modhack2003 changed the title Add Naruto theme loop, nine dialogue clips, and Sharingan sound effects Add admin-managed Naruto audio, theme-only mute, and 20-second dialogue gaps Oct 15, 2026
@modhack2003
modhack2003 merged commit 0831bd2 into main Oct 15, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview – bikram — c0fa4315 Deployed Oct 15, 2026 by vercel[bot]
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.

1 participant