1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00
QB64-PE/internal/help/_SNDVOL.txt

28 lines
710 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_SNDVOL}}
2017-10-10 14:55:21 +00:00
The [[_SNDVOL]] statement sets the volume of a sound loaded in memory using a handle from the [[_SNDOPEN]] function.
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: [[_SNDVOL]] {{Parameter|handle&}}, {{Parameter|volume!}}
{{PageDescription}}
2017-10-10 14:55:21 +00:00
* {{Parameter|volume!}} is a value from 0 (silence) to 1 (full volume).
2019-04-15 01:15:33 +00:00
* In versions '''prior to build 20170811/60''', the sound identified by {{Parameter|handle&}} must have been opened using the [[_SNDOPEN|"VOL" capability]] to use this function.
2017-10-10 14:55:21 +00:00
{{PageExamples}}
{{CodeStart}} '' ''
2019-04-15 01:15:33 +00:00
h& = {{Cl|_SNDOPEN}}("bell.wav")
{{Cl|_SNDVOL}} h&, 0.5
{{Cl|_SNDPLAY}} h& '' ''
{{CodeEnd}}
{{PageSeeAlso}}
2017-10-10 14:55:21 +00:00
*[[_SNDOPEN]], [[_SNDBAL]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<