I'm trying to implement separate sound and music turn On/Off buttons. My intention is to implement this globally, so I don't have to check these settings separately all around the code and the ini. What is the best way to do this?
I'm currently inclined to add a handler for orxSOUND_EVENT_START events, and adjust the volume of the sound (multiply by 0 or 1 based on the relevant setting). Is this efficient? Will it still be playing the sound with 0 volume? Will there be any audible glitches? Is there any better way?