Skip to content

Instantly share code, notes, and snippets.

@uyjulian
Created January 19, 2025 00:54
Show Gist options
  • Save uyjulian/1d354b39d42fc4f93c5ccae892829f80 to your computer and use it in GitHub Desktop.
Save uyjulian/1d354b39d42fc4f93c5ccae892829f80 to your computer and use it in GitHub Desktop.
enum
{
_rSpuInit = 0x0001,
rSpuSetCore = 0x0002,
rSpuSetKey = 0x0005,
rSpuSetReverb = 0x0006,
rSpuClearReverbWorkArea = 0x0007,
rSpuSetReverbEndAddr = 0x0008,
rSpuSetReverbModeDepth = 0x000A,
rSpuSetReverbVoice = 0x000B,
rSpuSetIRQ = 0x000C,
rSpuSetIRQAddr = 0x000D,
rSpuSetTransferMode = 0x000E,
rSpuSetTransferStartAddr = 0x0010,
rSpuWrite = 0x0011,
rSpuWrite0 = 0x0012,
rSpuIsTransferCompleted = 0x0013,
rSpuGetReverbEndAddr = 0x0017,
rSpuWritePartly = 0x0018,
rSpuInitHot = 0x0019,
rSpuIsReverbWorkAreaReserved = 0x001A,
rSpuMallocWithStartAddr = 0x001B,
rSpuRead = 0x001C,
rSpuReadDecodedData = 0x001D,
rSpuReserveReverbWorkArea = 0x001E,
rSpuSetMute = 0x0020,
rSpuSetNoiseClock = 0x0021,
rSpuSetNoiseVoice = 0x0022,
rSpuSetPitchLFOVoice = 0x0023,
rSpuStGetStatus = 0x0024,
rSpuStGetVoiceStatus = 0x0025,
rSpuInitMalloc = 0x0100,
rSpuMalloc = 0x0101,
rSpuStInit = 0x0200,
rSpuStQuit = 0x0201,
rSpuStTransfer = 0x0202,
rSpuStSetCore = 0x0203,
rSpuGetIRQAddr = 0x100C,
rSpuFlush = 0x1010,
rSpuFree = 0x1011,
rSpuGetIRQ = 0x1013,
rSpuGetMute = 0x1014,
rSpuGetNoiseClock = 0x1015,
rSpuGetNoiseVoice = 0x1016,
rSpuGetPitchLFOVoice = 0x1017,
rSpuGetReverb = 0x1018,
rSpuGetReverbVoice = 0x1019,
rSpuGetTransferMode = 0x101A,
rSpuGetTransferStartAddr = 0x101B,
rSpuGetKeyStatus = 0x101C,
rSpuAutoDMAWrite = 0x1020,
rSpuAutoDMAStop = 0x1021,
rSpuAutoDMAGetStatus = 0x1022,
rSpuSetAutoDMAAttr = 0x1023,
rSpuSetSerialInAttr = 0x1024,
rSpuSetMultiVoiceNum = 0x1030,
rSpuSetDigitalOut = 0x1031,
rSsBlockVoiceAllocation = 0x4001,
rSsEnd = 0x4002,
rSsChannelMute = 0x4003,
rSsGetActualProgFromProg = 0x4004,
rSsGetChannelMute = 0x4005,
rSsGetCurrentPoint = 0x4006,
rSsGetVoiceMask = 0x4007,
rSsInit = 0x4008,
rSsIsEos = 0x4009,
rSsAllocateVoices = 0x400A,
rSsPitchCorrect = 0x4010,
rSsPitchFromNote = 0x4011,
rSsPlayBack = 0x4012,
rSsQueueKeyOn = 0x4013,
rSsQueueReverb = 0x4014,
rSsQuit = 0x4015,
rSsSetTableSize = 0x4017,
rSsSetTickMode = 0x4018,
rSsSepClose = 0x4019,
rSsSepOpen = 0x4020,
rSsSepPause = 0x4021,
rSsSepPlay = 0x4022,
rSsSepReplay = 0x4023,
rSsSepSetAccelerando = 0x4024,
rSsSepSetCrescendo = 0x4025,
rSsSepSetDecrescendo = 0x4026,
rSsSepSetRitardando = 0x4027,
rSsSepSetVol = 0x4028,
rSsSepStop = 0x4029,
rSsSeqGetVol = 0x4030,
rSsSeqOpen = 0x4031,
rSsSeqPause = 0x4032,
rSsSeqPlayPtoP = 0x4033,
rSsSeqReplay = 0x4034,
rSsSeqSetAccelerando = 0x4035,
rSsSeqSetCrescendo = 0x4036,
rSsSeqSetDecrescendo = 0x4037,
rSsSeqSetRitardando = 0x4038,
rSsSeqSetNext = 0x4039,
rSsSeqCalledTbyT = 0x4040,
rSsSeqClose = 0x4041,
rSsSeqPlay = 0x4042,
rSsSeqSetVol = 0x4043,
rSsSeqSkip = 0x4044,
rSsSeqStop = 0x4045,
rSsSetAutoKeyOffMode = 0x4046,
rSsSetCurrentPoint = 0x4047,
rSsSetLoop = 0x4048,
rSsSetMono = 0x4049,
rSsSetMVol = 0x404A,
rSsSetNext = 0x4050,
rSsSetReservedVoice = 0x4051,
rSsSetStereo = 0x4052,
rSsSetTempo = 0x4053,
rSsSetVoiceMask = 0x4054,
rSsStart = 0x4055,
rSsStart2 = 0x4056,
rSsUnBlockVoiceAllocation = 0x4057,
rSsUtFlush = 0x4058,
rSsUtGetVagAddr = 0x4059,
rSsUtGetVagAddrFromTone = 0x4060,
rSsUtGetVBaddrInSB = 0x4061,
rSsVabClose = 0x4062,
rSsVabOpenHead = 0x4063,
rSsVabTransBodyPartly = 0x4064,
rSsVabTransCompleted = 0x4065,
rSsVabTransBody = 0x4066,
rSsVoiceCheck = 0x4067,
rSsVoKeyOff = 0x4068,
rSsVoKeyOn = 0x4069,
rSsVabOpenHeadSticky = 0x4070,
rStInit = 0x5001,
rStQuit = 0x5002,
rStCalledVSync = 0x5003,
rStVabOpen = 0x5005,
rStVabOpenFakeBody = 0x5006,
rStVabOpenCompleted = 0x5007,
rStVabClose = 0x5008,
rStBgmOpen = 0x5009,
rStSetTickMode = 0x500A,
rStBgmClose = 0x500B,
rStSetReverbType = 0x500C,
rStSetReverbDepth = 0x500D,
rStSetReverbDelaytime = 0x500E,
rStSetReverbFeedback = 0x500F,
rStGetSlotStatus = 0x5010,
rStSetSbClear = 0x5011,
rStSetMasterVol = 0x5012,
rStSetBgmVol = 0x5013,
rStBgmPlay = 0x5014,
rStBgmStop = 0x5015,
rStSetBgmTempo = 0x5016,
rStGetBgmTempo = 0x5017,
rStGetBgmStatus = 0x5018,
rStGetBgmChStatus = 0x5019,
rStDmaWrite = 0x501A,
rStDmaRead = 0x501B,
rSetTimer = 0x5100,
rReleaseTimer = 0x5101,
rStSePlay = 0x5200,
rStSetSeVol = 0x5201,
rSpuGetCommonAttr = 0x6128,
rSpuGetVoiceAttr = 0x6240,
rSpuGetReverbModeParam = 0x6314,
rSpuGetAllKeysStatus = 0x6418,
rSpuSetCommonAttr = 0x7128,
rSpuSetVoiceAttr = 0x7240,
rSpuSetReverbModeParam = 0x7314,
rSpuSetKeyOnWithAttr = 0x7440,
rSpuSetEnv = 0x7508,
rSpuSetMultiVoiceAttr = 0x7600,
rSpuSetTransferCallback = 0x8100,
rSpuSetIRQCallback = 0x8200,
rSpuAutoDMASetCallback = 0x8600,
rsceSpu2CallbackInit = 0xE621,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment