audSetChannelVolume

Sets the volume of a playing channel. Takes channel (channel handle), volume (volume 0.0 to 1.0). Returns nothing.

Audio

Parameters & Returns

Parameters

channel Int
volume Double

Returns

Void

Quick Summary

Sets the volume of a playing channel. Takes channel (channel handle), volume (volume 0.0 to 1.0). Returns nothing.

Technical Exegesis...

Sets the playback volume for the specified channel. Volume typically ranges from 0.0 (silent) to 1.0 (full volume), though values above 1.0 can amplify the sound.

Does nothing if the channel handle is invalid or <= 0. Changes take effect immediately during playback. Volume is independent for each channel, allowing fine-grained audio mixing.

Example

Example.bam
audSetChannelVolume(channel, vol)