Files
jak-project/game/overlord/soundcommon.cpp
T
ManDude 85bef15364 full ntsc-j mode + greatest hits support (#1525)
* 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
2022-06-23 18:44:02 -04:00

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);
}
}