mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Fixed some broken NON_MATCHING functions.
This commit is contained in:
+1
-2
@@ -4,7 +4,7 @@
|
||||
#include "types.h"
|
||||
#include "macros.h"
|
||||
|
||||
#if 00
|
||||
#if 0
|
||||
//Thse need to be compiled with -mips3, and linked differently
|
||||
unsigned long long __ull_rshift(unsigned long long a0, unsigned long long a1)
|
||||
{
|
||||
@@ -49,7 +49,6 @@ long long __ll_mod(long long a0, long long a1)
|
||||
long long tmp = a0 % a1;
|
||||
if ((tmp < 0 && a1 > 0) || (tmp > 0 && a1 < 0))
|
||||
{
|
||||
|
||||
tmp += a1;
|
||||
}
|
||||
return tmp;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* The comment below is needed for this file to be picked up by generate_ld */
|
||||
/* RAM_POS: 0x800C9B30 */
|
||||
|
||||
#if 00
|
||||
#if 0
|
||||
//This needs to be compiled with mips3, which isn't yet supported
|
||||
long long __d_to_ll(double d) {
|
||||
return d;
|
||||
@@ -30,7 +30,6 @@ float __ull_to_f(unsigned long long u) {
|
||||
#else
|
||||
#include "types.h"
|
||||
#include "macros.h"
|
||||
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0CA730/__d_to_ll.s")
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0CA730/__f_to_ll.s")
|
||||
GLOBAL_ASM("lib/asm/non_matchings/unknown_0CA730/__ll_to_f.s")
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
#include "macros.h"
|
||||
#include "audio_internal.h"
|
||||
|
||||
#if 00
|
||||
void alFxNew(ALFx *r, ALSynConfig *c, ALHeap *hp);
|
||||
#ifdef NON_MATCHING
|
||||
void alFxNew(ALFx *r, ALSynConfig *c, s16 bus);
|
||||
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, ALSynConfig *c, ALHeap *hp)
|
||||
{
|
||||
alFxNew(&s->auxBus[bus].fx[0], c, hp);
|
||||
alFxParam(&s->auxBus[bus].fx[0], AL_FILTER_SET_SOURCE,
|
||||
alFxNew(s->auxBus[bus].fx, c, bus);
|
||||
alFxParam(s->auxBus[bus].fx, AL_FILTER_SET_SOURCE,
|
||||
&s->auxBus[bus]);
|
||||
alMainBusParam(s->mainBus, AL_FILTER_ADD_SOURCE,&s->auxBus[bus].fx[0]);
|
||||
alMainBusParam(s->mainBus, AL_FILTER_ADD_SOURCE, s->auxBus[bus].fx);
|
||||
|
||||
return (ALFxRef)(&s->auxBus[bus].fx[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user