Return to previous page Return to menu Go to next page

1.4 Preparation for performance

[Sequence]

It is necessary to transfer the sequence data (song data, sound effect data) to be executed by the sound control function to the sound memory. Please transfer according to the current sound area map. For the sound area map, see the sound development manual. The calling sequence is shown in “Sound Control”.

[PCM]

For the preparation of PCM performance, see the sound driver system interface in the sound development manual.

1.5 Sound control

[Function Overview]


Sound control function writes commands to sound memory. There are 8 command buffers. Sound control functions can be used without being aware of the command buffer.

 
  • sequence Sequence data playback start / end, volume setting, etc. can be performed.
  • PCM You can start and stop playback of PCM data.
  • CD CD data volume setting, PAN setting, volume analysis, effect change, etc. can be performed.

[Calling sequence]

The following calling sequence is the process up to the start of the sequence.

void sndCnt()
{
     sndStart (); / * Sound system start (see above item) * /
     SND_ChgMap (2); / * Change sound area map * /
     SND_MoveData((Uint16 *)0x22005000, 0xffff, SND_KD_SEQ, 2);
                                        / * Sound data transfer (sequence) * /
     SND_MoveData((Uint16 *)0x22005500, 0xffff, SND_KD_TONE, 2);
                                        / * Sound data transfer (tone) * /
     SND_SetTlVl (15); / * Set the overall volume * /
     SND_StartSeq (0, 2, 5, 0); / * Sequence start * /
     ...
}


Return to previous page Return to menu Go to next page