mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
5b99929394
Supports most of the grain types now while maintaining compatibility with the old stuff (at least the subset of things jak1 uses) Would benefit from some testing in Jak 1 to make sure I didn't break anything. Sorry the git history is a mess, I'll do something about it later.
40 lines
681 B
C
40 lines
681 B
C
#pragma once
|
|
|
|
#include "common/common_types.h"
|
|
|
|
struct SoundRecord {
|
|
char name[16];
|
|
u32 fallof_params;
|
|
};
|
|
|
|
struct SoundBank {
|
|
char name[16];
|
|
u32 bank_handle;
|
|
u32 sound_count;
|
|
|
|
union {
|
|
SoundRecord sound[1];
|
|
|
|
// Needs to fit the biggest bank (common.sbk)
|
|
u8 buffer[10 * 2048];
|
|
|
|
// Jak 2 additions go here
|
|
struct {
|
|
u32 spu_loc;
|
|
u32 spu_size;
|
|
u32 unk4;
|
|
bool in_use;
|
|
};
|
|
};
|
|
};
|
|
|
|
void sbank_init_globals();
|
|
|
|
void InitBanks();
|
|
void ReloadBankInfo();
|
|
|
|
SoundBank* AllocateBank();
|
|
SoundBank* AllocateBankName(const char* name);
|
|
s32 LookupSoundIndex(const char* name, SoundBank** bank_out);
|
|
SoundBank* LookupBank(const char* name);
|