Renamed unknown_066460 to alSynAllocFX, and moved to lib folder.

This commit is contained in:
David Benepe
2021-07-22 20:51:42 -05:00
parent 442f0c3c33
commit 2375ac84a5
4 changed files with 18 additions and 26 deletions
+18
View File
@@ -0,0 +1,18 @@
/* The comment below is needed for this file to be picked up by generate_ld */
/* RAM_POS: 0x80065860 */
#include "types.h"
#include "macros.h"
#include "audio_internal.h"
#ifdef NON_MATCHING
// 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]);
return (ALFxRef)(&s->auxBus[bus].fx[0]);
}
#else
GLOBAL_ASM("lib/asm/non_matchings/alSynAllocFX/alSynAllocFX.s")
#endif
-22
View File
@@ -1,22 +0,0 @@
/* The comment below is needed for this file to be picked up by generate_ld */
/* RAM_POS: 0x80065860 */
#include "unknown_066460.h"
#include "types.h"
#include "macros.h"
#include "audio_internal.h"
#if 1
GLOBAL_ASM("asm/non_matchings/unknown_066460/alSynAllocFX.s")
#else
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]);
}
#endif
-4
View File
@@ -1,4 +0,0 @@
#ifndef _UNKNOWN_066460_H_
#define _UNKNOWN_066460_H_
#endif