PLAYWAVE

PLAYWAVE "filename" [, mode ]

Description:

This plays a *.wav sound from a file on disk as specified in filename. If mode is specified, it must be one of the modes described below:

  sync (or synch)- wait for the wave file to finish playing (the default)
  async (or asynch) - don't wait for the wave file to finish playing
  loop- play the wave file over and over (cancel with: playwave "")

Usage

  playwave "ding.wav", async
  playwave "tada.wav"
  playwave "hello.wav", loop
  playwave "" 'to stop previous wav from playing