I've searched the forums and found a few things, but the responses are pretty old/incomplete so I figured I'd reignite the discussion. There seem to be a lot of ways to go about this but I want to try to find the balance between efficiency and ease. Efficiency meaning as little of a performance hit as possible and ease because I've already completely designed my game and everything is a spaghetti of mess, so I'd rather do it the simplest way if possible. Of course I'll do whatever I have to, but if there is a real easy "duh" way of doing it then I will do it that way.
I'd assume to make so when you hit a button it changes a global value, then check for the global value at the beginning of a frame, etc etc. For the event, which is best between "stop channel", "stop any sample playing", "set mail volume", "pause all sounds", etc? And then what, store the volume value in an INI to save the player's preference across sessions?
Also, I saw an example on another thread that said this:
Add this event to you're current "play sample" events:
*If Mute (a global value) = 1
+Sample is playing
- Pause all Sounds
*If Mute (a global value) = 2
+Only once when action event loops
- Resume all Sounds
Would that persistent check to see if the global value = x be a large unnecessary drain on performance, or how does Fusion handle that type of process?
Anyway, thanks for the input.