audSetMusicVolume

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

Audio

Parameters & Returns

Parameters

musicChannel Int
volume Double

Returns

Void

Quick Summary

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

Technical Exegesis...

Sets the playback volume for the music identified by the music channel handle. 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 handle is invalid or <= 0. Pass the handle returned by audPlayMusic. Changes take effect immediately during playback.

Example

Example.bam
audSetMusicVolume(channel, vol)