Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match some RSP audio functions #188

Merged
merged 12 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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