Enjay wrote: ↑Sun Feb 23, 2025 1:44 pm
Also, can anyone think of any problems that might arise from changing this default.
To answer my own question, yes, I can.
Because sounds played on CHAN_AUTO do not interrupt each other, it is possible to set up state sequence loops that are either very short, or have very long sounds and so you can get an additive effect of two or more copies of the sound playing over each other, which may not be desirable. Even worse, if you have set the sound channel to loop, but been careless enough to let the state sequence also loop back to the instruction to loop the sound, then it can get horribly loud and very messy with several copies of the sound playing over each other at slightly different times.
However, this does bring me to another question. The wiki tells me that CHAN_AUTO has the above special ability of not being interruptable by other sounds played on the channel. It also tells me that CHAN_BODY is the default (as already mentioned in my OP). However, there really isn't any information about the other channels. Do they do anything special? Are their names particularly important or meaningful? Do they imply some specific function? They seem like they should, but I can't say I've ever noticed anything special about them in game. Like, is it OK to use CHAN_VOICE on a weapon, or CHAN_WEAPON in a monster's death sequence? They all seem to work. Is there really a weapon channel that only weapons use? What is the voice channel? Is the item channel for pickup sounds, or inventory activation sounds, or not those things at all? Does it matter? What about the channels that simply have numbers?
So, if anyone can tell me what (if anything) sets these channels apart from the others, it would be greatly appreciated - it has puzzled me for years. Or are they all just available sound channels with no real difference?
CHAN_AUTO - special channel, always plays the sound with the CHANF_OVERLAP flag
CHAN_WEAPON - no information
CHAN_VOICE - no information
CHAN_ITEM - no information
CHAN_BODY - default for historical reasons, but no more information
CHAN_5 - no information
CHAN_6 - no information
CHAN_7 - no information