jaudio_NES/bankread

This commit is contained in:
Cuyler36
2025-04-09 11:36:39 -04:00
parent fcf1dbd02d
commit d271a4d9e0
7 changed files with 258 additions and 78 deletions
+4
View File
@@ -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"
+17
View File
@@ -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
+19
View File
@@ -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 */
+2 -1
View File
@@ -4,5 +4,6 @@
#include "types.h"
void Jac_ConnectTableInit(void);
void Jac_BnkConnectTableSet(u32 vid, u32 pid);
#endif
#endif