Files
dusklight/libs/revolution/src/axfx/AXFXReverbHi.c
T
Luke Street 9649319ec4 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
2026-03-01 14:35:36 -08:00

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