overbound / SonicTimeTwisted

Source Code for a Sonic Fan Game Made in Game Maker Studio
https://overboundstudio.com/
GNU General Public License v3.0
60 stars 16 forks source link

objMusic audio system bugs with volumes. #158

Closed nkrapivin closed 3 years ago

nkrapivin commented 3 years ago

Sometimes when you've finished an ACT, the zone complete jingle would stay silent. This has been fixed just by stopping all sounds before playing the jingle.

This bug happened because of a small conflict between sound asset ids, and audio instance ids. The release/1.1.2 branch's objMusic clearly differentiates between an asset song id, and an audio instance id. in 1.1.2 the song asset id is only used when calling audio_play_sound, that's it, at all other times the unique audio instance id is used, which prevents a few possible conflicts.

nkrapivin commented 3 years ago

Solved by the "Release 1.1.2: Pass 3" commit.