spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Multimedia functions

SetChannelVolume

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


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.