audGetChannelVolume

Gets the current volume of a playing channel. Takes channel (channel handle). Returns the current volume setting for the specified channel.

Audio

Parameters & Returns

Parameters

channel Int

Returns

Double

Quick Summary

Gets the current volume of a playing channel. Takes channel (channel handle). Returns the current volume setting for the specified channel.

Technical Exegesis...

Returns the current volume setting for the specified channel. Volume typically ranges from 0.0 (silent) to 1.0 (full volume).

Returns 0.0 if the channel handle is invalid or <= 0. Use this to query the current volume before making adjustments or for implementing volume fading effects.

Example

Example.bam
Local vol:Double = audGetChannelVolume(channel)