mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-04 08:48:45 -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
34 lines
931 B
C
34 lines
931 B
C
#include <revolution/axfx.h>
|
|
#include <revolution.h>
|
|
|
|
static void __ParamConvert(AXFX_REVERBHI* fx) {
|
|
fx->exp.earlyMode = 5;
|
|
fx->exp.preDelayTimeMax = fx->preDelay;
|
|
fx->exp.preDelayTime = fx->preDelay;
|
|
fx->exp.fusedMode = 0;
|
|
fx->exp.fusedTime = fx->time;
|
|
fx->exp.coloration = fx->coloration;
|
|
fx->exp.damping = fx->damping;
|
|
fx->exp.crosstalk = fx->crosstalk;
|
|
fx->exp.earlyGain = 0.0f;
|
|
fx->exp.fusedGain = 1.0f;
|
|
fx->exp.busIn = NULL;
|
|
fx->exp.busOut = NULL;
|
|
fx->exp.outGain = fx->mix;
|
|
fx->exp.sendGain = 0.0f;
|
|
}
|
|
|
|
BOOL AXFXReverbHiInit(AXFX_REVERBHI* fx) {
|
|
__ParamConvert(fx);
|
|
return AXFXReverbHiExpInit(&fx->exp);
|
|
}
|
|
|
|
BOOL AXFXReverbHiShutdown(AXFX_REVERBHI* fx) {
|
|
AXFXReverbHiExpShutdown(&fx->exp);
|
|
return TRUE;
|
|
}
|
|
|
|
void AXFXReverbHiCallback(void* chans, void* context) {
|
|
AXFXReverbHiExpCallback((AXFX_BUFFERUPDATE*)chans, &((AXFX_REVERBHI*)context)->exp);
|
|
}
|