mirror of
https://github.com/open-goal/jak-project
synced 2026-06-02 02:00:40 -04:00
85bef15364
* remove str files from inputs * removed unused verbose flag * allow some kind of conditional game building for JP extras * make `PrintBankInfo` do nothing * clang * Update gltf_mesh_extract.cpp * fix `*jak1-full-game*` in extractor * use json library to build json file * screw it red label support as well
32 lines
861 B
C++
32 lines
861 B
C++
#include "soundcommon.h"
|
|
|
|
#include <cstdio>
|
|
#include <string>
|
|
|
|
#include "common/util/Assert.h"
|
|
|
|
// TODO strcpy_toupper
|
|
// TODO atoi
|
|
// TODO ReadBankSoundNames
|
|
|
|
void ReadBankSoundInfo(SoundBank* bank, SoundBank* unk, s32 unk2) {
|
|
(void)bank;
|
|
(void)unk;
|
|
(void)unk2;
|
|
ASSERT(false);
|
|
}
|
|
|
|
void PrintBankInfo(SoundBank* bank) {
|
|
// we dont need this and it spams the console too much
|
|
return;
|
|
|
|
printf("Bank %s\n\n", bank->name);
|
|
for (u32 i = 0; i < bank->sound_count; i++) {
|
|
// Some characters use the full 16 characters (bonelurker-grunt) and dont have a null terminator
|
|
std::string name = std::string(bank->sound[i].name, 16);
|
|
printf("%d : %16s : min %d max %d curve %d\n", i, name.c_str(),
|
|
bank->sound[i].fallof_params & 0x3fff, (bank->sound[i].fallof_params >> 14) & 0x3fff,
|
|
bank->sound[i].fallof_params >> 28);
|
|
}
|
|
}
|