Pushed the final changes that got audio working!
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
#include "libultra_internal.h"
|
||||
#include "libaudio_internal.h"
|
||||
|
||||
#include "../../debug_print.h"
|
||||
|
||||
#define PATCH(SRC, BASE, TYPE) //SRC = (TYPE)((uintptr_t) SRC + (uintptr_t) BASE)
|
||||
|
||||
void alSeqFileNew(ALSeqFile *f, u8 *base) {
|
||||
DEBUG_PRINT("alSeqFileNew()");
|
||||
int i;
|
||||
DEBUG_PRINT("- patching %d entries", f->seqCount);
|
||||
for (i = 0; i < f->seqCount; i++) {
|
||||
DEBUG_PRINT("- handling entry %d", i);
|
||||
DEBUG_PRINT("- patching offset (%x) with base (%x)", f->seqArray[i].offset, base);
|
||||
PATCH(f->seqArray[i].offset, base, u8 *);
|
||||
DEBUG_PRINT("- result is (%x)", f->seqArray[i].offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <ultra64.h>
|
||||
|
||||
#include "mixer.h"
|
||||
#include "../../debug_print.h"
|
||||
|
||||
#ifdef __SSE4_1__
|
||||
#include <immintrin.h>
|
||||
@@ -147,6 +148,8 @@ void aSaveBufferImpl(uint16_t source_addr, int16_t *dest_addr, uint16_t nbytes)
|
||||
}
|
||||
#else
|
||||
void aLoadBufferImpl(const void *source_addr) {
|
||||
DEBUG_PRINT("aLoadBufferImpl()");
|
||||
DEBUG_PRINT("- source_addr: %x", source_addr);
|
||||
memcpy(BUF_U8(rspa.in), source_addr, ROUND_UP_8(rspa.nbytes));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user