TerryCavanagh / VVVVVV

The source code to VVVVVV! http://thelettervsixtim.es/
Other
6.94k stars 556 forks source link

Fix remaining audio speedup/slowdown bug #1063

Closed Daaaav closed 9 months ago

Daaaav commented 9 months ago

Changes:

Fixes #1057.

Based on Ethan's hunch, I simply removed the format comparison that decides whether to halt and restart, or reuse the voice. Voices are now always restarted when playing a new track.

This also simplifies the code somewhat: MusicTrack::musicVoiceFormat was now no longer used, and an if (!IsHalted()) was no longer necessary because Halt() already does that. So those are now removed as well.

Legal Stuff:

By submitting this pull request, I confirm that...