Return to previous page | Return to menu | Go to next page
3.2 Sequence playback
3.2.1 Map change
There are many scenes in the game, and the area maps are usually different.
Therefore, you must specify an area map before playing a sequence. Select the desired area map from the sound area map and change the map. After the map change is over, transfer the sound data according to the map. Preparation for sequence playback is now complete.
Be sure to change the map once after starting the sound driver. Thereafter, it must be done every time the area map changes. Follow the steps 1 to 6 below for map changes.
Map change method
Order | Processing content | Description |
1 | Stop all pronunciation | "Sound Issue the “Initial (10h)” command. Parameters specify all sound stop and all initialization. |
2 | Switch area map | "Map Change (08h ) "Command. Specify the area map number to be switched in the parameter. |
3 | Transfer sound data td> Sound data Transfer from SH address 25A0B000. If you have sound data divided into multiple files, transfers each data according to the area map. |
4 | Notify transfer completion | Sound area map CRNT Set all the transferred bits of the work (from the SH address 25A00500h) to “1” for the amount of transfer completed. |
5 | Set the DSP | If necessary Issue the “Effect Change (83h)” command. |
6 | Set the mixer | "Mixer Change ( 87h) ”command. Be sure to set the mixer even if you are not using a DSP. |
|
3.2.2 Sequence playback method
You can play the sequence at any time after the map change is over. For sequence playback, issue sound control commands (sequence start, sequence stop, etc.) that control sequence playback. For details on how to issue commands and their details, refer to “Chapter 4 Commands and Status”.
Note 1: Change the area map while the sound is still playing, or use the sound
If the data is replaced, the system may run out of control. Shiken
Even if the sound playback is stopped and no sound is heard, the release sound is processed internally.
Since there may be cases, be sure to perform step 1 above.
Note 2: Since the DSP workram is used for DSP internal processing, the DSP operates.
During this time, the contents of this area are constantly rewritten by the DSP. DSP word
Be careful when changing an area map that changes the size or address of the crumb
Is required. If the DSP is running, use it as a DSP workram until just before
Sound data transferred to the place where it was placed will be destroyed.
Return to previous page | Return to menu | Go to next page