1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 17:00:26 +00:00
qb64/internal/help/_SNDVOL.txt

25 lines
600 B
Plaintext

The {{KW|_SNDVOL}} statement sets the volume of a sound using a handle from the {{KW|_SNDOPEN}} Function.
{{PageSyntax}}
:{{KW|_SNDVOL}} ({{Parameter|handle&}}, {{Parameter|volume!}})
{{PageDescription}}
*Volume is a value from 0 (silence) to 1 (full volume).
*An opened sound file must have the "VOL" capability to use this function.
{{PageExamples}}
{{CodeStart}} '' ''
h& = {{Cl|_SNDOPEN}}("bell.wav", "SYNC,VOL")
{{Cl|_SNDVOL}} h&, 0.5
{{Cl|_SNDPLAY}} h& '' ''
{{CodeEnd}}
{{PageSeeAlso}}
*{{KW|_SNDOPEN}}, {{KW|_SNDBAL}}
{{PageNavigation}}