|
resonance 1.0.1
|

Go to the source code of this file.
Classes | |
| struct | EZMIDI_BANK |
| One sound bank the EE describes to the module. More... | |
| struct | sSynthConfig |
| Synthesiser settings the EE sends with HardSynthConfig(). More... | |
Macros | |
| #define | EZMIDI_RPC_SERVER 0x12346 |
| Types the three units of the EZMIDI IOP module share. | |
| #define | EZMIDI_CMD_PORT_MASK 0xf |
| Bits of an RPC function number that select the port. | |
| #define | EZMIDI_CMD_MASK 0xfff0 |
| Bits of an RPC function number that select the command. | |
Enumerations | |
| enum | { EZMIDI_CMD_ALL_NOTES_OFF = 0xc0 , EZMIDI_CMD_INFO = 0xd0 , EZMIDI_CMD_PAUSE = 0xf0 , EZMIDI_CMD_REMIX = 0x100 , EZMIDI_CMD_MONO = 0x110 , EZMIDI_CMD_INVALIDATE_HD = 0x120 , EZMIDI_CMD_ATTACH_HD = 0x1050 , EZMIDI_CMD_LOAD_BD = 0x1070 , EZMIDI_CMD_CONFIG = 0x10e0 , EZMIDI_CMD_INIT = 0x8010 , EZMIDI_CMD_INVALIDATE_BANK = 0x8130 } |
| RPC commands. More... | |
Functions | |
| int | sce_midi_loop (void) |
| Enable the SPU2 DMA interrupts and serve EZMIDI_RPC_SERVER. | |
| #define EZMIDI_RPC_SERVER 0x12346 |
Types the three units of the EZMIDI IOP module share.
The layouts and names follow the stabs the shipped EZMIDI.IRX records. Addresses in the comments below are offsets into EZMIDI.IRX. SIF RPC server identifier of the module.
| #define EZMIDI_CMD_PORT_MASK 0xf |
Bits of an RPC function number that select the port.
| #define EZMIDI_CMD_MASK 0xfff0 |
Bits of an RPC function number that select the command.
| anonymous enum |
RPC commands.
The argument buffer is an int unless noted.
| Enumerator | |
|---|---|
| EZMIDI_CMD_ALL_NOTES_OFF | Silence every channel. |
| EZMIDI_CMD_INFO | Diagnostic request, see HardSynthInfo(). |
| EZMIDI_CMD_PAUSE | Nonzero pauses, zero resumes. |
| EZMIDI_CMD_REMIX | Switch remix mode. |
| EZMIDI_CMD_MONO | Switch mono output. |
| EZMIDI_CMD_INVALIDATE_HD | Detach the bank slot using a header address. |
| EZMIDI_CMD_ATTACH_HD | Attach a bank; the buffer is an EZMIDI_BANK. |
| EZMIDI_CMD_LOAD_BD | Load a bank body; the buffer is an EZMIDI_BANK. |
| EZMIDI_CMD_CONFIG | Replace the settings; the buffer is sSynthConfig. |
| EZMIDI_CMD_INIT | Initialise; replies with the MIDI buffer address. |
| EZMIDI_CMD_INVALIDATE_BANK | Detach a bank slot. |
| int sce_midi_loop | ( | void | ) |
Enable the SPU2 DMA interrupts and serve EZMIDI_RPC_SERVER.
It does not return.