PlaySound()
Summary
Plays a sound file.
Syntax
PlaySound(string soundfile, string disposition)
| Argument | Contents |
|---|---|
| soundfile | The path and file name of the sound file |
| disposition | One of the following values:- "Null": waits for the sound to complete- "NoWait": returns immediately- "Loop": returns immediately and repeats the sound until the next call to PlaySound() |
Notes
-
PlaySound() accepts only Windows wave (.WAV) files.
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | The sound file does not exist or cannot be opened |