Fix up printing and begin GDB

This commit is contained in:
CrashOveride95 committed 2021-04-16 20:02:56 -04:00
1 parent 8a8253291a
commit cf77e2db67
12 files changed
+1587 -108

No files matched your search

+6 -1
View File
@@ -216,8 +216,10 @@ void discard_bank(s32 bankId) {
#else
if (note->priority >= NOTE_PRIORITY_MIN) {
#endif
#if defined(VERSION_EU)
eu_stubbed_printf_3("Kill Voice %d (ID %d) %d\n", note->waveId,
bankId, note->priority);
#endif
eu_stubbed_printf_0("Warning: Running Sequence's data disappear!\n");
note->parentLayer->enabled = FALSE; // is 0x48, should be 0x44
note->parentLayer->finished = TRUE;
@@ -760,7 +762,9 @@ void *alloc_bank_or_seq(struct SoundMultiPool *arg0, s32 arg1, s32 size, s32 arg
#ifdef VERSION_SH
case 0:
#endif
#ifdef VERSION_EU
eu_stubbed_printf_1("MEMORY:StayHeap OVERFLOW (REQ:%d)", arg1 * size);
#endif
return NULL;
}
}
@@ -1118,8 +1122,9 @@ void audio_reset_session(void) {
#else
struct SynthesisReverb *reverb;
#endif
#ifdef VERSION_EU
eu_stubbed_printf_1("Heap Reconstruct Start %x\n", gAudioResetPresetIdToLoad);
#endif
#if defined(VERSION_JP) || defined(VERSION_US)
if (gAudioLoadLock != AUDIO_LOCK_UNINITIALIZED) {
decrease_reverb_gain();
+5 -5
View File
@@ -1977,11 +1977,11 @@ void audio_init() {
gAudioLoadLock = AUDIO_LOCK_NOT_LOADING;
// Should probably contain the sizes of the data banks, but those aren't
// easily accessible from here.
eu_stubbed_printf_0("---------- Init Completed. ------------\n");
eu_stubbed_printf_1(" Syndrv :[%6d]\n", 0); // gSoundDataADSR
eu_stubbed_printf_1(" Seqdrv :[%6d]\n", 0); // gMusicData
eu_stubbed_printf_1(" audiodata :[%6d]\n", 0); // gSoundDataRaw
eu_stubbed_printf_0("---------------------------------------\n");
osSyncPrintf("---------- Init Completed. ------------\n");
osSyncPrintf(" Syndrv :[%6d]\n", gSoundDataADSR); // gSoundDataADSR
osSyncPrintf(" Seqdrv :[%6d]\n", gMusicData); // gMusicData
osSyncPrintf(" audiodata :[%6d]\n", gSoundDataRaw); // gSoundDataRaw
osSyncPrintf("---------------------------------------\n");
#endif
}
+5
View File
@@ -7,11 +7,16 @@
#ifdef VERSION_EU
#if defined(ISVPRINT) || defined(UNF)
#define stubbed_printf osSyncPrintf
#else
#ifdef __sgi
#define stubbed_printf
#else
#define stubbed_printf(...)
#endif
#endif
#define SAMPLES_TO_OVERPRODUCE 0x10
#define EXTRA_BUFFERED_AI_SAMPLES_TARGET 0x40