mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-28 23:15:32 -04:00
eed14acdc6
The hope of auto-importing data via lld MinGW + pseudo_reloc is now dead thanks to ARM64, so I just wrote a script to go annotate every exported data symbol in the game instead.
29 lines
758 B
C++
29 lines
758 B
C++
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
|
|
|
#include "JSystem/JAudio2/JASVoiceBank.h"
|
|
#include "JSystem/JAudio2/JASBasicInst.h"
|
|
|
|
DUSK_GAME_DATA const JASOscillator::Data JASVoiceBank::sOscData = {
|
|
0, 1.0f, NULL, NULL, 1.0f, 0.0f,
|
|
};
|
|
|
|
DUSK_GAME_DATA JASOscillator::Data* JASVoiceBank::sOscTable;
|
|
|
|
bool JASVoiceBank::getInstParam(int param_0, int param_1, int param_2,
|
|
JASInstParam* param_3) const {
|
|
if (param_0 < 0) {
|
|
return false;
|
|
}
|
|
sOscTable = (JASOscillator::Data*)&sOscData;
|
|
param_3->field_0x1a = param_0;
|
|
param_3->field_0x1d = 1;
|
|
param_3->field_0x14 = &sOscTable;
|
|
return true;
|
|
}
|
|
|
|
JASVoiceBank::~JASVoiceBank() {}
|
|
|
|
u32 JASVoiceBank::getType() const {
|
|
return 'VOIC';
|
|
}
|