mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-25 07:02:47 -04:00
Increase audio heap sizes on PC
prevent allocation failures from larger 64-bit pointers
This commit is contained in:
@@ -20,7 +20,11 @@ JAU_JASInitializer::JAU_JASInitializer() {
|
||||
audioMemSize_ = 0;
|
||||
dvdThreadId_ = -1;
|
||||
audioThreadId_ = -1;
|
||||
#if TARGET_PC
|
||||
heapSize_ = 0x4000;
|
||||
#else
|
||||
heapSize_ = 0x1000;
|
||||
#endif
|
||||
dvdThreadPriority_ = 3;
|
||||
audioThreadPriority_ = 2;
|
||||
field_0x1c = 0x80;
|
||||
|
||||
@@ -107,7 +107,7 @@ static void mDoAud_Create() {
|
||||
#endif
|
||||
if (g_mDoAud_audioHeap != NULL) {
|
||||
s32 groupID = JKRGetCurrentHeap()->changeGroupID(5);
|
||||
#if PLATFORM_GCN
|
||||
#if PLATFORM_GCN && !TARGET_PC
|
||||
const int audioMemSize = 0xA00000;
|
||||
#else
|
||||
const int audioMemSize = 0xB00000;
|
||||
|
||||
@@ -52,7 +52,11 @@ OSTime mDoMain::sPowerOnTime;
|
||||
OSTime mDoMain::sHungUpTime;
|
||||
u32 mDoMain::memMargin = 0xFFFFFFFF;
|
||||
char mDoMain::COPYDATE_STRING[18] = "??/??/?? ??:??:??";
|
||||
#if TARGET_PC
|
||||
const int audioHeapSize = 0x14D800 * 2;
|
||||
#else
|
||||
const int audioHeapSize = 0x14D800;
|
||||
#endif
|
||||
|
||||
// --- PC LOGGING CALLBACK ---
|
||||
void aurora_log_callback(AuroraLogLevel level, const char* module, const char* message,
|
||||
|
||||
Reference in New Issue
Block a user