mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Match memory_copy, and fix some warnings
This commit is contained in:
@@ -6,13 +6,19 @@
|
||||
#include "audio_internal.h"
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
void alFxNew(ALFx *r, ALSynConfig *c, ALHeap *hp);
|
||||
s32 alFxParam(void *filter, s32 paramID, void *param);
|
||||
s32 alMainBusParam(void *filter, s32 paramID, void *param);
|
||||
// This is very close to matching.
|
||||
ALFxRef *alSynAllocFX(ALSynth *s, s16 bus, s32 *arg2) {
|
||||
alFxNew(&s->auxBus[bus].fx[0], arg2, bus);
|
||||
alFxParam(&s->auxBus[bus].fx[0], AL_FILTER_SET_SOURCE, &s->auxBus[bus]);
|
||||
alMainBusParam(s->mainBus, AL_FILTER_ADD_SOURCE, &s->auxBus[bus].fx[0]);
|
||||
ALFxRef *alSynAllocFX(ALSynth *s, s16 bus, ALSynConfig *c, ALHeap *hp)
|
||||
{
|
||||
alFxNew(&s->auxBus[bus].fx[0], c, hp);
|
||||
alFxParam(&s->auxBus[bus].fx[0], AL_FILTER_SET_SOURCE,
|
||||
&s->auxBus[bus]);
|
||||
alMainBusParam(s->mainBus, AL_FILTER_ADD_SOURCE,&s->auxBus[bus].fx[0]);
|
||||
|
||||
return (ALFxRef)(&s->auxBus[bus].fx[0]);
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("lib/asm/non_matchings/alSynAllocFX/alSynAllocFX.s")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user