Sound commands

Blitz3D Forums/Blitz3D Beginners Area/Sound commands

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I seem to remember Mark adding the ability to use up to 1024 channels simultaneously (fairly recently). AFAIK FMOD mixes the channels down internally.


For the global volume, you could use something like:
Global g_snd_volume# = 0.5
...
chn = MyPlaySound(bang, 0.5)
...
End

Function MyPlaySound(snd, vol#=1)
 Local chn
 
 If g_snd_volume = 0 Then Return
 
 chn = PlaySound(snd)
 ChannelVolume chn, vol# * g_snd_volume#

 Return chn
end Function

Function MyChannelVolume(chn, vol#)
  If chn then ChannelVolume chn, vol# * g_snd_volume#
End Function
Or did you mean more of a 'normalising' type of affair?