mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-07-07 20:11:51 -04:00
jaudio_NES/bankread
This commit is contained in:
@@ -35,7 +35,11 @@ typedef int BOOL;
|
||||
#define INT_MAX 2147483647
|
||||
|
||||
#ifndef NULL
|
||||
#ifndef __cplusplus
|
||||
#define NULL ((void*)0)
|
||||
#else
|
||||
#define NULL 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "libc/stdio.h"
|
||||
|
||||
@@ -931,6 +931,23 @@ typedef struct PLAYER_CALL_ {
|
||||
u32 DSP_mode;
|
||||
} PLAYER_CALL;
|
||||
|
||||
typedef struct Bank_ {
|
||||
u32 magic; // 'BANK'
|
||||
u8* part0[128];
|
||||
u8* part1[100];
|
||||
u8* part2[12];
|
||||
// more?
|
||||
} Bank;
|
||||
|
||||
typedef struct InstBank_ {
|
||||
u32 magic; // 'IBNK'
|
||||
u32 _04;
|
||||
u32 vid;
|
||||
u8 pad[32 - 3 * sizeof(u32)];
|
||||
Bank bank;
|
||||
// more
|
||||
} InstBank;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef BANKREAD_H
|
||||
#define BANKREAD_H
|
||||
|
||||
#include "types.h"
|
||||
#include "audiostruct.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
BOOL Bank_Regist(void* bank, u32 pid);
|
||||
void Bank_Init(void);
|
||||
Bank* Bank_Get(u32 pid);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BANKREAD_H */
|
||||
@@ -4,5 +4,6 @@
|
||||
#include "types.h"
|
||||
|
||||
void Jac_ConnectTableInit(void);
|
||||
void Jac_BnkConnectTableSet(u32 vid, u32 pid);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user