Skip to content

Commit

Permalink
Match some RSP audio functions (#188)
Browse files Browse the repository at this point in the history
* Match rspParseABI

* Match rspParseABI2

* Match rspAInterleave2

* Match rspAPoleFilter1

* Match rspASetBuffer1

* Match rspASetVolume1

* Match audio mix functions

* Match rspAResample2

* Match rspAResample1

* Match rspParseABI1

* Match rspParseABI3

* Match rspParseABI4
  • Loading branch information
cadmic authored Sep 25, 2024
1 parent 1a59f97 commit 75be701
Show file tree
Hide file tree
Showing 2 changed files with 1,332 additions and 19 deletions.
6 changes: 3 additions & 3 deletions include/emulator/rsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
#define AUDIO_SEGMENT_ADDRESS(pRSP, nOffsetRDRAM) \
(pRSP->anAudioBaseSegment[((nOffsetRDRAM) >> 24) & 0xF] + ((nOffsetRDRAM) & 0xFFFFFF))

typedef enum __anon_0x581E7 {
typedef enum RspAudioUCodeType {
RUT_NOCODE = -1,
RUT_ABI1 = 0,
RUT_ABI2 = 1,
RUT_ABI3 = 2,
RUT_ABI4 = 3,
RUT_UNKNOWN = 4,
} __anon_0x581E7;
} RspAudioUCodeType;

typedef enum RspUCodeType {
RUT_NONE = -1,
Expand Down Expand Up @@ -227,7 +227,7 @@ typedef struct Rsp {
/* 0x38C8 */ s16 nVCC;
/* 0x38CA */ s16 nVC0;
/* 0x38CC */ char nVCE;
/* 0x38D0 */ __anon_0x581E7 eTypeAudioUCode;
/* 0x38D0 */ RspAudioUCodeType eTypeAudioUCode;
/* 0x38D4 */ u16 nAudioMemOffset;
/* 0x38D6 */ u16 nAudioADPCMOffset;
/* 0x38D8 */ u16 nAudioScratchOffset;
Expand Down
Loading

0 comments on commit 75be701

Please sign in to comment.