TerryCavanagh / VVVVVV

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

Fix played jingles (Path Complete and Plenary) briefly not respecting user volume #1183

Closed mothbeanie closed 2 months ago

mothbeanie commented 2 months ago

Changes:

There seems to be a lot of confusion between user volume and game's master volume. As a result, a bug was introduced when the user volume setting was added in which for a single frame the music of these jingles was set to the VVV_MAX_VOLUME which may be much louder than the user's volume setting. This was especially noticeable for Path Complete, but could be heard in Plenary too (even with its baked-in fade). It might be a good idea to generally clean up the audio code because the different volume variables between user and master are peppered throughout the audio functions instead of being localized and processed in one place. Either way, this PR fixes the bug with the jingles (tracks 0 and 7).

Legal Stuff:

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