Analyzing data and making trade-offs


A 3DO application has to work within the limitations of available memory and maximum data rate. Therefore, it is important to analyze data and to set clear goals early to have smooth playback later on. For example, for background music during an introduction, you'll want to use CD-quality stereo, while sound files that consist only of people talking can be highly compressed and lower quality. Data preparation can proceed once those decisions are made.

Note: Be sure to analyze your data carefully and set your priorities. Some developers have processed all data twice because they made a wrong decision about optimal delivery early in their development cycle.

This section first looks at the limitations of the hardware, then at some trade-offs you have to make when designing your application.

System resource limitations

Consider the availability of system resources when preparing a stream file.

An application using streaming must live by the following rule: The sum of the data rates of each of the elements of the stream cannot exceed the data rate of the input device.

As you approach the limits for bandwidth and other system resources of the device from which data is being acquired, creating a working stream becomes a balancing act.

For example, in a typical audio/video playback application, video playback might run at 220 KB/s. Audio playback might run at 44 KB/s. Therefore, the total bandwidth required is at least 264 KB/s. Consequently, processing and overhead cannot exceed 36 KB/s (300-264 KB/s). All the filler and chunk information, plus disc seek times, must be processed within this 36 KB/s window.

For more information

See Debugging and Optimization.

Trade-offs

This section discusses issues you need to consider when preparing video and audio for your 3DO application.

Audio

Video