Skip to content

fix: Synchronize music streams started in the same frame - #653

Merged
cobaltgit merged 1 commit into
ButterscotchRunner:mainfrom
casrielasriel:audiooffsync-fix
Oct 24, 2026
Merged

cobaltgit merged 1 commit into
ButterscotchRunner:mainfrom
casrielasriel:audiooffsync-fix

Conversation

@casrielasriel

Copy link
Copy Markdown
Collaborator

We now delay streamed-audio starts until the audio update, then schedule them together on the mixer clock.

This prevents loading one music layer from putting it behind another. This fixes off-sync music in both DELTARUNE Chapter 3 and 5 (and 4? i think 4 has a little lightners live thing in castle town) when playing the Lightners Live segment.

We now delay streamed-audio starts until the audio update, then schedule them together on the mixer clock. 
This prevents loading one music layer from putting it behind another. pauses cancel pending starts, and resumes use the same scheduling. 
This fixes off-sync music in both DELTARUNE Chapter 3 and 5 (and 4? i think 4 has a little lightners live thing in castle town) when playing the Lightners Live segment.
@cobaltgit
cobaltgit merged commit d2820dd into ButterscotchRunner:main Oct 24, 2026
33 checks passed
@cobaltgit

Copy link
Copy Markdown
Collaborator

Yeah chapter 4 has the lightners live minigame too

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