1.7 The 64aud1 Sample Program

In this section we talk about the sample program 64aud1, which uses the functions we have just explained.



Figure 1-3 Runtime screen of sample program 64aud1


When you execute the sample program 64aud1, something like the screen shown in Figure 1-3 will display on your monitor.

First let's give a summary and explain the Controller operations for the first three items on this display screen:

Control Pad
Use the keys to select the Settings Menu and the keys to change a value.

C Button Unit
When the F.O menu item is selected, you can change the value 10 units at a time with Right/Left on the C Button Unit.

A Button
Plays back a song or sound effect according to the values specified in the Settings menu.

Z Trigger Button
All songs and sound effects are stopped after fading out for the specified number of frames.

B Button
Stops the audio that was started last.

Please confirm these operations by trying them out with a Standard Controller.

Next we'll talk about the middle three items in this display screen. These items represent the number of channels secured for songs, the number of channels secured for sound effects, and the total number of channels, respectively. This does not refer to the number of channels secured for use in real time, but rather the maximum number of channels for use for the various songs and sound effects that are secured when playback starts and are released when playback ends.

The bottom four items are explained below:
-TOTAL The audio heap size as specified with MusInitialize.
-USED The audio size actually used. You can lower the TOTAL until you reach this size.
-INIT Determined by the size of the audio heap used when MusInitialize was initialized.
-DATA The total size of the audio heap for the songs, sound effects and sample pointer banks used in this sample program.