Hack64 Wiki
Other Titles
Hack64 Wiki
Other Titles
This is an old revision of the document!
Much like the Fast3D series microcode, the audio microcode also accepts commands in order to perform tasks on the RSP (Reality Signal Processor). As with Fast3D, each audio command is 64 bits (8 bytes) in size. There are 16 different audio commands.
00 00 00 00 00 00 00 00
Stalls the RSP. This command does nothing otherwise and should only be used for debugging.
01 FF GGGG SS AAAAAA
This command produces 16-bit samples from a binary stream. The flag byte accepts the arguments listed later below that control its behavior, the gain byte controls the volume of the samples, the segment and address bytes control where to read the samples in DMEM.
This command accepts two flags that control its behavior, these flags are listed in the table below:
A_INIT | The seg+address field field is used to restore state at the beginning of the command. If not set the pointer to state is ignored upon initiation, however, state is saved to this address at the end of processing. |
A_MIX | The results are mixed into the output buffer. If not set results are put into the output buffer. |