Personally I wouldn't handle the channels myself, I would let Blitz do that job. Just play the sounds and store the channel as long as it is required.
boom=PlaySound(line_snd)
ChannelPitch boom,40000
; won't be used anymore, so let's forget about it
if a sound is looped, store it's channel in a permanent global variable, such as "music_channel" or something.
Most Soundcards have 16 or 32 Channels, so it happens rarely that there aren't enough channels.
boom=PlaySound(line_snd)
ChannelPitch boom,40000
; won't be used anymore, so let's forget about it
if a sound is looped, store it's channel in a permanent global variable, such as "music_channel" or something.
Most Soundcards have 16 or 32 Channels, so it happens rarely that there aren't enough channels.