Skip to content

Playwave

Purpose

This command is used to play a Windows sound (.WAV) file from within a DataFlex application. In addition to using this command, you must also have a sound driver for your computer in order to play one of these files.

Syntax

PlayWave {wav-file} {player-option}

Argument Explanation

  • WavFile: The name of the sound file to play.

  • PlayerOption: This parameter tells Windows how the file should be played. The full list of values for this parameter are as follows:

  • SND_SYNC: play synchronous
  • SND_ASYNC: play asynchronous
  • SND_NODEFAULT: play with no defaults
  • SND_LOOP: play in a loop
  • SND_NOSTOP: play non-stop

Notes

  • In order to make this command available, your program must use wave.pkg.