Hi!
It would be cool if Blitz3D had a command like:
enableMusic 1 ; sound
enableMusic 0 ; no sound
...Just for debugging purposes (instead of using lots of 'if musicEnable=1 then playSound' statements)
Just to throw in my 2 cents ..
I use my own "Sound_Play" and "Music_Play" functions and always use them. That way I can just throw a "return" into the first line of them if I need to shut off sound or music at any point in development.
Also makes it easy to implement things like user controlled volume settings.
Try this from the archives - Its only for 2d sound but its easily modifiable to work with 3d sound as well.
http://www.blitzbasic.com/codearcs/codearcs.php?code=190
I think what would be more useful would be to uninitialise and reinitialise FMOD at will. Programs (particularly B+) that don't use sound would benefit from a small memory/CPU cycle boost. Only small. Could also be useful in testing environments, games in 'safe mode' ala UT, etc...
yes, in fact, I ment that. Like not initializing FMOD.