Resource allocation and planning


Before starting audio production, it's helpful to decide how a title will use audio and where the audio files will reside. This section discusses the following choices.

RAM-resident vs. ROM-resident sound

First decide whether the title itself will be RAM-resident or will use data streaming.

Spooled vs. streamed sound

Spooled sound comes directly from a file on disc. A program can play short individual sound effects like an explosion or a door opening. Background music can be spooled in using a separate task.

Streamed sound is played using functions from the 3DO Data Streamer library. The advantage of working with streamed audio is that it allows a title to benefit from audio sample files, even though the title is not RAM-resident. Note that you can't stream more than 300 KB/sec total of video and audio data.

For more information

Sound file characteristics

Decisions about where sound will reside and how it will be played influence decisions about the characteristics of the sound file you generate. There's always a trade-off between file size and sound quality.

Stereo vs. mono

An early consideration should be whether to use stereo or mono sounds. Remember that stereo sound at a 44.1 kHz sample rate requires 10 MB per minute. If mono is adequate, the size is cut in half. Certain sound effects require stereo (panning, flanging, tennis matches, etc.), but many sound effects can be mono. If CD-ROM space is available, spooled or streamed files should be stereo, since more and more television sets provide stereo sound.

Sample rate

When you decide on the sample rate, remember that many televisions produce high-quality sound. You may not be able to get by with 22 kHz samples. Take care to avoid audio aliasing: Sample any given sound at twice the frequency of its highest component. Human speech and other sounds with many upper partials may sound boxy at 22 kHz.

Compression

You can use compressed sound as long as the correct DSP instrument is attached during playback.

When you decide whether to compress your audio files, remember that there is a DSP bandwidth trade-off: Compression saves RAM/ROM but decompression can result in a big system resource overhead hit because the DSP code required to decompress sample files takes up more DSP cycles and code space.