ph_playsound PowerHome formula function
Description
Plays a WAV file.
Syntax
ph_playsound ( wav, flags )
Argument |
Description |
wav
|
A string defining the path and wav file to be played.
|
flags
|
An unsignedinteger which represents how the wav file is to be played. Valid values which can be added (OR’ed) together are: 0 – Function returns after wav is played. 1 – Function returns immediately after wav starts playing. 2 – If file not found, play nothing. 4 – Play wav from memory instead of disk. 8 – Loop until function is called again with flags set to null. Should be combined with 1. 16 – If sound system is busy, don’t stop the currently playing sound and return without playing.
|
Return value
Integer. Returns a 0 if a wav capable device is present in the system, otherwise a 1 is returned.