mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-13 13:56:49 -04:00
9649319ec4
* Reorganize files into libs/{dolphin,JSystem,PowerPC_EABI_Support,revolution,TRK_MINNOW_DOLPHIN}
* Update configure.py and project.py for new libs structure
* Refactor `#include <dolphin/x.h>` -> `<x.h>`
* Remove `__REVOLUTION_SDK__` forwards from dolphin
* Fix dolphin/ references in revolution
* Wrap `#include <dolphin.h>` in `!__REVOLUTION_SDK__`
* Always build TRK against dolphin headers
* Resolve revolution SDK header resolution issues
54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
//
|
|
// JAUSoundTable
|
|
//
|
|
|
|
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
|
|
|
#include "JSystem/JAudio2/JAUSoundTable.h"
|
|
|
|
void JAUSoundTable::init(void const* param_0) {
|
|
if (param_0 != NULL) {
|
|
field_0x0.init(param_0);
|
|
} else {
|
|
field_0x0.reset();
|
|
}
|
|
}
|
|
|
|
u8 JAUSoundTable::getTypeID(JAISoundID param_0) const {
|
|
if (param_0.isAnonymous()) {
|
|
return 0xff;
|
|
}
|
|
JAUSoundTableSection* section = field_0x0.getSection(param_0.id_.info.type.parts.sectionID);
|
|
if (section == NULL) {
|
|
return 0xff;
|
|
}
|
|
JAUSoundTableGroup* group = field_0x0.getGroup(section, param_0.id_.info.type.parts.groupID);
|
|
if (group == NULL) {
|
|
return 0xff;
|
|
}
|
|
return group->getTypeID(param_0.id_.info.waveID);
|
|
}
|
|
|
|
JAUSoundTableItem* JAUSoundTable::getData(JAISoundID param_0) const {
|
|
if (param_0.isAnonymous()) {
|
|
return NULL;
|
|
}
|
|
JAUSoundTableSection* section = field_0x0.getSection(param_0.id_.info.type.parts.sectionID);
|
|
if (section == NULL) {
|
|
return NULL;
|
|
}
|
|
JAUSoundTableGroup* group = field_0x0.getGroup(section, param_0.id_.info.type.parts.groupID);
|
|
if (group == NULL) {
|
|
return NULL;
|
|
}
|
|
return getItem(group, param_0.id_.info.waveID);
|
|
}
|
|
|
|
void JAUSoundNameTable::init(void const* param_0) {
|
|
if (param_0 != NULL) {
|
|
field_0x0.init(param_0);
|
|
} else {
|
|
field_0x0.reset();
|
|
}
|
|
}
|