SetChannelVolume (int channel, int volume)
Changes the volume of sound channel number CHANNEL to VOLUME. VOLUME is a number
from 0-255, where 255 is the loudest and 0 is silence.
This command adjusts the volume of the specified channel relative to the other channels. It
is still constrained within the master volume, set by SetDigitalMasterVolume and
SetMusicMasterVolume.
NOTE: This command only affects the current sound being played on the channel.
If you start a new sound on the channel using PlaySoundEx for instance, then the
channel volume will be changed back to the main Sound Volume setting.
See PlaySoundEx for more on sound channels.
Example:
SetChannelVolume (3, 255);
will make the sound on channel 3 very loud.
See Also: SetDigitalMasterVolume, SetMusicMasterVolume, SetSoundVolume
|