mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-28 23:15:32 -04:00
Reorganize library code into libs/ (#3119)
* 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
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
||||
|
||||
#include "JSystem/JAudio2/JASVoiceBank.h"
|
||||
#include "JSystem/JAudio2/JASBasicInst.h"
|
||||
|
||||
const JASOscillator::Data JASVoiceBank::sOscData = {
|
||||
0, 1.0f, NULL, NULL, 1.0f, 0.0f,
|
||||
};
|
||||
|
||||
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';
|
||||
}
|
||||
Reference in New Issue
Block a user