Skip to content

Fix ogg vorbis music#1566

Merged
JonnyH merged 1 commit intoOpenApoc:masterfrom
JonnyH:WIP/vorbis-music-fix
Jan 8, 2026
Merged

Fix ogg vorbis music#1566
JonnyH merged 1 commit intoOpenApoc:masterfrom
JonnyH:WIP/vorbis-music-fix

Conversation

@JonnyH
Copy link
Collaborator

@JonnyH JonnyH commented Jan 8, 2026

When playing a playlist and reaching the end of a track, the vorbis decoder was never set to the beginning of the file again for the next loop of a playlist.

This meant that each music file would only ever play once, and then when tried to play again be considered at the end and immediately switch to the end.

If there are no more valid files in the playlist and all are at the end, this would wedge the audio thread, causing no sound and the next interaction with the audio lock (like, for example, the sfx from clicking a button) would hardlock the game.

When playing a playlist and reaching the end of a track, the vorbis
decoder was never set to the beginning of the file again for the next
loop of a playlist.

This meant that each music file would only ever play once, and then when
tried to play again be considered at the end and immediately switch to
the end.

If there are no more valid files in the playlist and all are at the end,
this would wedge the audio thread, causing no sound and the next
interaction with the audio lock (like, for example, the sfx from
clicking a button) would hardlock the game.
@JonnyH JonnyH merged commit 99b2840 into OpenApoc:master Jan 8, 2026
3 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