1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 04:50:22 +00:00
QB64-PE/internal/help/_SNDVOL__111111.txt
Roland Heyder aeb9c0668b Updates help files for use with new Wiki parser (2nd try)
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
2022-05-21 00:18:31 +02:00

30 lines
724 B
Plaintext

{{QBDLDATE:05-20-2022}}
{{QBDLTIME:23:11:17}}
{{DISPLAYTITLE:_SNDVOL}}
The [[_SNDVOL]] statement sets the volume of a sound loaded in memory using a handle from the [[_SNDOPEN]] function.
{{PageSyntax}}
: [[_SNDVOL]] {{Parameter|handle&}}, {{Parameter|volume!}}
{{PageDescription}}
* {{Parameter|volume!}} is a value from 0 (silence) to 1 (full volume).
* 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.
{{PageExamples}}
{{CodeStart}}
h& = {{Cl|_SNDOPEN}}("bell.wav")
{{Cl|_SNDVOL}} h&, 0.5
{{Cl|_SNDPLAY}} h&
{{CodeEnd}}
{{PageSeeAlso}}
*[[_SNDOPEN]], [[_SNDBAL]]
{{PageNavigation}}