sndPlaySound(pchar(msg), SND_FILENAME or SND_SYNC);
{msg:string which is the full filename. To stop Windows from playing a
sound use the following}
sndplaysound('NULL', SND_PURGE);
{it follows then that if you had an array of sounds in memory, and make 'P'
an array of pointer, and tbyte a byte to select the array sound you want,
you can play any sound thusly}
sndPlaySound(p[tbyte], SND_MEMORY or SND_SYNC);
Cheers,
Alistair+
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz