Remove unused buffers

This commit is contained in:
CrashOveride95 committed 2021-02-02 17:50:20 -05:00
1 parent 82f1b1c433
commit 1d564a8043
6 files changed
+21 -35

No files matched your search

-8
View File
@@ -799,16 +799,8 @@ struct SPTask *create_next_audio_frame_task(void) {
task->output_buff_size = NULL;
task->data_ptr = gAudioCmdBuffers[index];
task->data_size = writtenCmds * sizeof(u64);
// The audio task never yields, so having a yield buffer is pointless.
// This wastefulness was fixed in US.
#ifdef VERSION_JP
task->yield_data_ptr = (u64 *) gAudioSPTaskYieldBuffer;
task->yield_data_size = OS_YIELD_AUDIO_SIZE;
#else
task->yield_data_ptr = NULL;
task->yield_data_size = 0;
#endif
decrease_sample_dma_ttls();
return gAudioTask;
-2
View File
@@ -24,8 +24,6 @@ extern f32 gGlobalSoundSource[3];
// defined in data.c, used by the game
extern u32 gAudioRandom;
extern u8 gAudioSPTaskYieldBuffer[]; // ucode yield data ptr; only used in JP
struct SPTask *create_next_audio_frame_task(void);
#ifdef VERSION_SH
struct SPTask *func_sh_802f5a80(void);
-2
View File
@@ -62,8 +62,6 @@ u8 gAudioResetPresetIdToLoad;
s32 gAudioResetFadeOutFramesLeft;
#endif
u8 gAudioUnusedBuffer[0x1000];
extern s32 gMaxAudioCmds;
#ifdef VERSION_SH