no music

Blitz3D Forums/Blitz3D Programming/no music

Jeroen(Posted 2004) [#1]
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)


Warren(Posted 2004) [#2]
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.


Ricky Smith(Posted 2004) [#3]
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


Jeroen(Posted 2004) [#4]
thanks


Hotcakes(Posted 2004) [#5]
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...


Jeroen(Posted 2004) [#6]
yes, in fact, I ment that. Like not initializing FMOD.