Closed Daaaav closed 11 months ago
Likely a gap where SetSourceSampleRate should be... this check does seem mildly suspicious though:
https://github.com/TerryCavanagh/VVVVVV/blob/master/desktop_version/src/Music.cpp#L440
It might be worth it to always halt and restart, rather than try to recycle the voice, state shadowing will probably be leaky and recreating the source voice each time shouldn't be expensive to do.
Looks like you're right - always halting and restarting there seems to fix this! Will PR it in a bit.
Don't yet know the circumstances, but opening Vungeon the first time in a session the music has normal speed, exiting and reloading the level, it's sped up:
https://github.com/TerryCavanagh/VVVVVV/assets/44736680/7f6abfca-e044-4a54-af56-40f4a9e83abb
Some more details from
file
andffmpeg -i
for the second audio (song+voiceover, it's the expected 44100 Hz...):Here's the ogg in question: song16.ogg.zip
Probably the song before it also matters (which is 48000), so here that is as well:
3potentialforanything.ogg.zip