Skip to content

Prevent overlapping DJ recording starts during audio resume - #558

Merged
timoncool merged 1 commit into
music-round-2026-11-20from
music-round/dj-record-resume-race
Nov 21, 2026
Merged

timoncool merged 1 commit into
music-round-2026-11-20from
music-round/dj-record-resume-race

Conversation

@timoncool

Copy link
Copy Markdown
Owner
  • Reserve DJ recording before awaiting AudioContext.resume() and ignore a duplicate start while it is pending.
  • Publish the MediaRecorder only after its start succeeds and clear the reservation after either startup error.
  • Reproduced both failures on the baseline. The tests now assert one resume, one recorder start, one output chunk, and retry after resume and recorder failures.

Checks: djMixer.test.ts (7 tests), tsc --noEmit, git diff --check.

@timoncool
timoncool merged commit 5b3e094 into music-round-2026-11-20 Nov 21, 2026
10 checks passed
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