I've been pondering how it would be best to handle all of the sounds in my game. For now, let's assume I'm grouping all sounds together, so there won't be a distinction between sound effects and background music. Also, let's assume all I want to be able to do is switch between audible and mute.
I figure I can create a custom class called Music.as or something and just tie all of my sounds to it. Sound files in the Library can have base classes, right? Haven't checked yet.
If that is the case I think I could easily toggle the sounds/music that are playing as well as any sounds that are about to be played. I noticed that after looking at this there doesn't seem to be a mute property tied to any sound transform. I guess that's not an issue as I can just toggle volume, but I still find it weird.
Does any of this make sense? Any ideas about a better approach? This is my first time actually using sounds dynamically. Want to do it right.
I was actually hoping to be able to toggle volume with the mouse scroll wheel, but that definitely isn't going to happen for obvious reasons.