mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 11:25:08 +00:00
23 lines
425 B
Markdown
23 lines
425 B
Markdown
The [_SNDPLAY](_SNDPLAY) statement plays a sound designated by a file handle created by [_SNDOPEN](_SNDOPEN).
|
|
|
|
## Syntax
|
|
|
|
> [_SNDPLAY](_SNDPLAY) handle&
|
|
|
|
## Description
|
|
|
|
* Make sure that the handle& value is not 0 before attempting to play it.
|
|
|
|
## Example(s)
|
|
|
|
Checking a handle value before playing
|
|
|
|
```vb
|
|
|
|
IF h& THEN _SNDPLAY h&
|
|
|
|
```
|
|
|
|
## See Also
|
|
|
|
* [_SNDOPEN](_SNDOPEN), [_SNDPAUSE](_SNDPAUSE), [_SNDPLAYING](_SNDPLAYING)
|