Skip to content

feat(evaluation): optional results preview music on clear#469

Draft
adstep wants to merge 2 commits into
pnn64:mainfrom
adstep:adstep/results-preview-music
Draft

feat(evaluation): optional results preview music on clear#469
adstep wants to merge 2 commits into
pnn64:mainfrom
adstep:adstep/results-preview-music

Conversation

@adstep

@adstep adstep commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Why

The results/evaluation screen is silent after a song ends. Some players prefer a bit of ambiance there. This adds an opt-in setting to play the song's preview snippet once on the results screen, but only after a clear (it stays silent on a fail, matching the somber tone of a failed attempt).

What

  • New EvalPreviewMusic option under Options > Sound, default Off, persisted to config ([Options] block) alongside the existing MenuMusic toggle.
  • When enabled, the evaluation screen plays the song's preview cut exactly once on entry, non-looping, at the song's music_rate. Playback is guarded so it only fires on a clear (!all_joined_players_failed) and only once per screen via a preview_music_started flag.
  • Reuses the existing preview logic from the song select screen (compute_preview_cut, now pub(crate)) so the cut points and behavior stay consistent with the wheel preview.
  • Localization strings added to en.ini (OptionsSound label + help text).

adstep added 2 commits June 4, 2026 20:18
Add an EvalPreviewMusic option (Sound submenu, default off) that plays the song's preview music once on the results screen after a clear (silent on fail).
Drop the clear-only guard so the preview plays once on the results screen regardless of pass/fail. Update help text and rename the helper accordingly.
@adstep adstep force-pushed the adstep/results-preview-music branch from aa394ce to 3e89e2f Compare June 5, 2026 03:19
@sabrina-440

Copy link
Copy Markdown
Contributor

Just wondering if this case was accounted for/tested...what is the behavior if user has Custom Sound Packs on the evaluation screen? Do they play at the same time? Would be cursed but also kinda funny

@adstep

adstep commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

Just wondering if this case was accounted for/tested...what is the behavior if user has Custom Sound Packs on the evaluation screen? Do they play at the same time? Would be cursed but also kinda funny

These get layered and run at the same time.

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.

2 participants