This simple code show's how to detect whether a computer has a soundcard installed. You can also modify pan and frequency. The RIFF file format is designed to be as generic as possible. It is used for waveform, AVI, palette, and other information standards that may need to be mixed and used together. Generally speaking, though, any file with a WAV extension will only contain waveform data.
RIFF provides information in chunks and subchunks.
The Wave subchunk is immediately followed by the WAVE Format Chunk. It is this small chunk that defines the structure of the waveform data that will follow. Play a wav, avi, mid, CD, record a wav, capture an avi frame. When you play an .AVI file using the full screen, the color palette focus is set to the .AVI file only. No dithering of colors occurs because there are no other windows in the background to capture the color palette.