mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-30 17:40:16 +00:00
26 lines
498 B
Text
26 lines
498 B
Text
|
The {{KW|_SNDPLAY}} statement plays a sound designated by a file handle created by {{KW|_SNDOPEN}}.
|
||
|
|
||
|
|
||
|
{{PageSyntax}}
|
||
|
:{{KW|_SNDPLAY}} ({{Parameter|handle&}})
|
||
|
|
||
|
|
||
|
{{PageDescription}}
|
||
|
* Make sure that the handle value is not 0 before attempting to play it.
|
||
|
|
||
|
|
||
|
{{PageExamples}}
|
||
|
|
||
|
''Example:'' Checking a handle value before playing
|
||
|
{{CodeStart}}
|
||
|
|
||
|
{{Cl|IF...THEN|IF}} h& {{Cl|THEN}} {{Cl|_SNDPLAY}} h&
|
||
|
|
||
|
{{CodeEnd}}
|
||
|
|
||
|
|
||
|
{{PageSeeAlso}}
|
||
|
*{{KW|_SNDPAUSE}}, {{KW|_SNDPLAYING}}
|
||
|
|
||
|
|
||
|
{{PageNavigation}}
|