Waveform-Audio
Files
In the
Microsoft Windows operating system, most waveform-audio files use the .WAV
filename extension.
The following
statement plays the C:\SOUNDS\BELLS.WAV file:
PlaySound("C:\\SOUNDS\\BELLS.WAV", NULL,
SND_SYNC);
If the
specified file does not exist, or if the file does not fit into the available
memory, PlaySound
PlaySound("C:\\SOUNDS\\BELLS.WAV", NULL,
SND_SYNC | SND_NODEFAULT);