Difference between revisions of "SNDPLAY"

From QB64 Wiki
Jump to navigation Jump to search
imported>Cyperium
m
imported>SMcNeill
(style guidelines)
 
Line 4: Line 4:
  
 
{{PageSyntax}}
 
{{PageSyntax}}
::: [[_SNDPLAY]] {{Parameter|handle&}}
+
: [[_SNDPLAY]] {{Parameter|handle&}}
  
  
 
{{PageDescription}}
 
{{PageDescription}}
* Make sure that the handle value is not 0 before attempting to play it.
+
* Make sure that the {{Parameter|handle&}} value is not 0 before attempting to play it.
  
  
 +
{{PageExamples}}
 
''Example:'' Checking a handle value before playing
 
''Example:'' Checking a handle value before playing
 
{{CodeStart}} '' ''
 
{{CodeStart}} '' ''

Latest revision as of 14:18, 9 September 2017

The _SNDPLAY statement plays a sound designated by a file handle created by _SNDOPEN.


Syntax

_SNDPLAY handle&


Description

  • Make sure that the handle& value is not 0 before attempting to play it.


Examples

Example: Checking a handle value before playing

IF h& THEN _SNDPLAY h&


See also



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page