You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
Some more cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user