Skip to content

Soundtracks - #568

Draft
dn285 wants to merge 8 commits into
qbreader:mainfrom
dn285:feature/soundtracks
Draft

Soundtracks#568
dn285 wants to merge 8 commits into
qbreader:mainfrom
dn285:feature/soundtracks

Conversation

@dn285

@dn285 dn285 commented Aug 28, 2026

Copy link
Copy Markdown

Geoword already plays a single audio file per tossup and pauses on buzz, so this PR adds only what's new for Soundtracks: teams and merging teammates' buzzes. Everything else reuses the existing Geoword engine.

Also, five Geoword client files imported scripts/utilities/strings.js, which was moved to shared/string-utils.js in 4d382c4. The unresolved import meant those modules never executed, leaving the game page's buttons completely inert. Fixed here because it blocked testing.

Testing

Download some MP3s and put them under path audio/soundtracks/ with an answers.json:

[
  { "questionNumber": 1, "answer": "<b><u>Answer one</u></b>" },
  { "questionNumber": 2, "answer": "<b><u>Answer two</u></b>" }
]

Filenames just need to end in the question number for now. Answers use standard quizbowl answerline syntax and go straight to qb-answer-checker.

Then run:

npm install
npm run build
node tools/seed-soundtracks.js   # idempotent; re-run freely
npm start

which seeds a free (costInCents: 0) packet, three non-admin players on two teams, and soundtracks-admin for viewing results early. Password is password for all.

Can log in as a user (e.g. soundtracks-alice) and play and check the rankings. To clear buzzes and replays:

bash scenario.sh

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