audSetMasterVolume

Sets the global master volume for all audio. Takes volume (volume 0.0 to 1.0). Returns nothing.

Audio

Parameters & Returns

Parameters

volume Double

Returns

Void

Quick Summary

Sets the global master volume for all audio. Takes volume (volume 0.0 to 1.0). Returns nothing.

Technical Exegesis...

Sets the global volume that affects all sounds, music, and channels. Volume typically ranges from 0.0 (silent) to 1.0 (full volume), though values above 1.0 can amplify all audio.

Automatically initializes the audio engine on first use. The master volume is a multiplier applied to all individual channel and music volumes. Useful for implementing a master volume slider in settings.

Example

Example.bam
audSetMasterVolume(vol)