Home Contact Site Map Privacy Policy Rev Search
PlayWav
 

News & Info
Products
Services
Developer's Corner
Sample Projects
Site Search
Sprezzatura Links
Support Section

Up
Font List
GetExe
PlayWav
Run Win
System
WinList
 

 

 

 PlayWav

METHODPLAYWAV
DescriptionPLAYWAV plays a .wav file or stops one playing.
  
PARAM1Name of the file to play
PARAM2A dynamic array of options used when playing the sound.

<1> - if TRUE$ then play the sound ASYNCHRONOUSLY ( returns to the calling function immediately ).

<2> - If TRUE$ then don't use default sound if the file passed in param1 is not valid.

<3> - If TRUE$ then loop the sound until the next PLAYWAV call.

<4> - If TRUE$ then don't stop any currently playing sound.

PARAM3n/a
PARAM4n/a
PARAM5n/a
PARAM6n/a
  
Example:* // Play c:\test.wav in a continous loop

wavName = "c:\test.wav"
wavOptions = ""

wavOptions<ZZ16PW_LOOPFLAG$> = TRUE$

if zz_Utility_Dll( "PLAYWAV", wavName, wavOptions, "", "", "", "", errorText ) then
* ....sound started
end else
* Handle error - see errorText var
end

* // To stop the loop (or any playing sound) use
* // a blank file name

if zz_Utility_Dll( "PLAYWAV", "", "", "", "", "", "", errorText ) then
* ....sound stopped
end else
* Handle error - see errorText var
end

 
Copyright © 2005 The Sprezzatura Group. All rights reserved.