mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Renamed unknown_066460 to alSynAllocFX, and moved to lib folder.
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -1,4 +0,0 @@
|
||||
#ifndef _UNKNOWN_066460_H_
|
||||
#define _UNKNOWN_066460_H_
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user