1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/_SNDPLAYING.md
2022-12-24 21:14:48 -06:00

532 B

The _SNDPLAYING function returns whether a sound is being played. Uses a handle from the _SNDOPEN or _SNDCOPY functions.

Syntax

isPlaying% = _SNDPLAYING(handle&)

Description

  • Returns false (0) if a sound is not playing or true (-1) if it is.
  • If a sound is paused, _SNDPLAYING returns 0.

Example(s)


PRINT _SNDPLAYING(h&) 

See Also