Some more cleanup

This commit is contained in:
Arceveti
2021-09-27 13:35:55 -07:00
parent 6155b6416a
commit ea0fd25a73
60 changed files with 731 additions and 1011 deletions

View File

@@ -511,7 +511,7 @@ s32 adsr_update(struct AdsrState *adsr) {
}
case ADSR_STATE_SUSTAIN:
adsr->delay -= 1;
adsr->delay--;
if (adsr->delay == 0) {
adsr->state = ADSR_STATE_RELEASE;
}

View File

@@ -1281,9 +1281,6 @@ static u8 get_sound_reverb(UNUSED u8 bank, UNUSED u8 soundIndex, u8 channelIndex
return reverb;
}
static void noop_8031EEC8(void) {
}
/**
* Called from the game loop thread to inform the audio thread that a new game
* frame has started.
@@ -1295,7 +1292,6 @@ void audio_signal_game_loop_tick(void) {
#if defined(VERSION_EU) || defined(VERSION_SH)
maybe_tick_game_sound();
#endif
noop_8031EEC8();
}
/**

View File

@@ -1488,7 +1488,7 @@ void func_sh_802f5310(s32 bankId, struct AudioBank *mem, struct PatchStruct *pat
if (D_SH_8034F68C != 0 && sp4C == 0) {
temp_s0 = D_SH_8034EC88[D_SH_8034F68C - 1].sample;
temp = (temp_s0->size >> 12);
temp += 1;
temp++;
count = (uintptr_t) temp_s0->sampleAddr;
func_sh_802f4cb4(
count,
@@ -1540,7 +1540,7 @@ next:
sampleAddr = sample->sampleAddr;
size = sample->size;
unk = size >> 0xC;
unk += 1;
unk++;
added = ((sampleAddr + size) + sample->medium);
if (added != D_SH_8034EC88[D_SH_8034F68C - 1].endAndMediumIdentification) {
D_SH_8034EC88[D_SH_8034F68C - 1].isFree = TRUE;