mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
fix audio for 64 bit
This commit is contained in:
parent
de4f2fb3f4
commit
33bb17438e
4 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@
|
||||||
#include "regs.h"
|
#include "regs.h"
|
||||||
|
|
||||||
//#define AUDIO_HEAP_SIZE 0x38000
|
//#define AUDIO_HEAP_SIZE 0x38000
|
||||||
#define AUDIO_HEAP_SIZE 0x3800000 // The original audio heap size was too small. The heap would exceed capacity and corrupt everything in its path.
|
#define AUDIO_HEAP_SIZE 0x5800000 // The original audio heap size was too small. The heap would exceed capacity and corrupt everything in its path.
|
||||||
#define SYSTEM_HEAP_SIZE (1024 * 1024 * 4)
|
#define SYSTEM_HEAP_SIZE (1024 * 1024 * 4)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -10,7 +10,7 @@ const s16 D_8014A6C0[] = {
|
||||||
0x0030, // gTatumsPerBeat
|
0x0030, // gTatumsPerBeat
|
||||||
};
|
};
|
||||||
|
|
||||||
const AudioContextInitSizes D_8014A6C4 = { 0x37F00, 0xE0E0, 0xBCE0 };
|
const AudioContextInitSizes D_8014A6C4 = { 0x57F00, 0x2E0E0, 0xFCE0 };
|
||||||
|
|
||||||
ReverbSettings D_80133420[][3] = {
|
ReverbSettings D_80133420[][3] = {
|
||||||
{
|
{
|
||||||
|
|
|
@ -575,7 +575,7 @@ s32 AudioLoad_SyncInitSeqPlayerInternal(s32 playerIdx, s32 seqId, s32 arg2) {
|
||||||
while (numFonts > 0) {
|
while (numFonts > 0) {
|
||||||
fontId = gAudioContext.sequenceFontTable[index++];
|
fontId = gAudioContext.sequenceFontTable[index++];
|
||||||
|
|
||||||
if (gUseLegacySD)
|
//if (gUseLegacySD)
|
||||||
AudioLoad_SyncLoadFont(fontId);
|
AudioLoad_SyncLoadFont(fontId);
|
||||||
|
|
||||||
numFonts--;
|
numFonts--;
|
||||||
|
|
|
@ -382,11 +382,11 @@ void AudioSynth_EnvSetup1(Acmd* cmd, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
||||||
void func_800DBD08(void) {
|
void func_800DBD08(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioSynth_LoadBuffer(Acmd* cmd, s32 arg1, s32 arg2, s32 arg3) {
|
void AudioSynth_LoadBuffer(Acmd* cmd, s32 arg1, s32 arg2, uintptr_t arg3) {
|
||||||
aLoadBuffer(cmd, arg3, arg1, arg2);
|
aLoadBuffer(cmd, arg3, arg1, arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioSynth_SaveBuffer(Acmd* cmd, s32 arg1, s32 arg2, s32 arg3) {
|
void AudioSynth_SaveBuffer(Acmd* cmd, s32 arg1, s32 arg2, uintptr_t arg3) {
|
||||||
aSaveBuffer(cmd, arg1, arg3, arg2);
|
aSaveBuffer(cmd, arg1, arg3, arg2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue