mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 03:15:07 +00:00
24 lines
550 B
Text
24 lines
550 B
Text
{{DISPLAYTITLE:_SNDPLAY}}
|
|
The [[_SNDPLAY]] statement plays a sound designated by a file handle created by [[_SNDOPEN]].
|
|
|
|
|
|
{{PageSyntax}}
|
|
: [[_SNDPLAY]] {{Parameter|handle&}}
|
|
|
|
|
|
{{PageDescription}}
|
|
* Make sure that the {{Parameter|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}}
|
|
* [[_SNDOPEN]], [[_SNDPAUSE]], [[_SNDPLAYING]]
|
|
|
|
|
|
{{PageNavigation}}
|