Sound - one spite, 3 sound states
BlitzMax Forums/BlitzMax Beginners Area/Sound - one spite, 3 sound states
| ||
2D Game Got my sprites running Got my alpha shadow map working Now just getting stuck into sound for the 1st time ever and would someone to confirm the following: I have 4 players, each with 5 speeds Each speed uses a different sample I'm just wondering - how many channels do people use in their games, as I can see myself using 4 players * 4 channels ? |
| ||
I limit my game to 32 channels at the moment, but I increased this from 16 channels trying to figure out a sound problem I was having (which, like you, was down to complete misunderstanding of the Blitzmax sound/channel commands). :) Basically I have an array of 32 tChannels, plus a channel pointer that counts from 0-31 then loops over. I check if a sound is already playing on that channel. If it is, I stop the channel before playing a new sound on the same channel. This ensures I'm never trying to play more than 32 channels at once. |
| ||
thanks gfk |