1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 09:45:54 +00:00
QB64-PE/internal/help/_SNDVOL.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

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&amp;}}, {{Parameter|volume!}})
{{PageDescription}}
*Volume is a value from 0 (silence) to 1 (full volume).
*An opened sound file must have the &quot;VOL&quot; capability to use this function.
{{PageExamples}}
{{CodeStart}} '' ''
h&amp; = {{Cl|_SNDOPEN}}(&quot;bell.wav&quot;, &quot;SYNC,VOL&quot;)
{{Cl|_SNDVOL}} h&amp;, 0.5
{{Cl|_SNDPLAY}} h&amp; '' ''
{{CodeEnd}}
{{PageSeeAlso}}
*{{KW|_SNDOPEN}}, {{KW|_SNDBAL}}
{{PageNavigation}}