How to play a WAV file in the background

By Andy Strong

Freeware 27 Feb 1997

In category

Code Samples > Samples > Multimedia And Graphics


Source of an example to play a WAV file in the background and be sent a message when its finished playing. This example was derived to overcome the deficiencies of using just the 'sndPlaySound' function. The 'sndPlaySound' is ideal and easy to use to play WAV files synchronously. It allows asynchronous playing of WAV files as well, but there is no method of notifying the host when the sound has completed playing. This example was put together after studying the MMSYSTEM.PAS unit, and articles on the MSCDN.


  • Status: Fully functional
  • Source: FW
  • Size: 3 072kB


  • Delphi 1