home *** CD-ROM | disk | FTP | other *** search
- WM WAV Subset The nice thing about standards is
- ───────────── that there are so many of them to
- choose from. - A.S. Tanenbaum
-
- WAV files are a special case of RIFF (Resource Interchange File Format) forms,
- a tagged file structure used for (MS Windows) multimedia resource files. They
- support many more features than those needed by WAVmaker, such as embedded
- foreign format files, comments, playlists, and more. Rather than to bloat
- WAVmaker's code with a full (=large and slow) WAV file parser, the decision
- has been made to restrict all WAV in/out to the bare minimum needed for
- digital audio, i.e. to files made up of only one WAVE form with the following
- properties:
-
- ■ Data format category: MS Pulse Code Modulation (PCM).
- ■ Bits per sample: 8 or 16.
- ■ Number of sound channels: 1 or 2 (mono or stereo).
- ■ Sampling rate: 11025, 22050 or 44100 samples/channel.
- ■ No fact chunk.
- ■ No cue chunk.
- ■ No playlist.
- ■ No associated data list.
-
- Essentially, this is just a raw sound data file + a header containing data
- format information. All WAV samples you encounter are likely to conform to
- these choices (apart from the sampling rate, which may vary, this is the
- format normally produced when a new WAV file is recorded). The sampling
- rates are those considered "standard" for PCs. While supporting a continuous
- range would be easy for most applications, there are cases when the choice
- of sampling rate affects the operations to be performed in non-trivial ways
- (it may for instance be necessary to determine the prime number closest to
- the number of samples corresponding to a given time delay). Having to
- consider only a few different choices of sampling rates allows for the use
- of look-up tables, speeding up execution.
-
- If you want to use a WAV file which doesn't conform to the subset recognized
- by WAVmaker, you can convert it with a sound editor supporting the full format
- definition.