Restrictions in Playing Waveform Sounds

There are some restrictions to using sndPlaySound and MessageBeep to play waveform sounds:

The entire sound must fit in available physical memory.

The sound must be in a data format playable by one of the installed waveform audio device drivers.

Use sndPlaySound and MessageBeep to play WAVE files that are relatively small in size—up to about 100K. For larger sound files, use the Media Control Interface (MCI) services. For information on using MCI, see “Playing and Recording Audio Using MCI,” later in this chapter.