Skip to content

Commit

Permalink
_SsContResetAll (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozud authored Dec 18, 2023
1 parent aaaa3fc commit 9f9238d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/psxsdk/libsnd/seqread.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,18 @@ INCLUDE_ASM("main/nonmatchings/psxsdk/libsnd/seqread", _SsContPortaTime);

INCLUDE_ASM("main/nonmatchings/psxsdk/libsnd/seqread", _SsContPortamento);

INCLUDE_ASM("main/nonmatchings/psxsdk/libsnd/seqread", _SsContResetAll);
void _SsContResetAll(s16 arg0, s16 arg1) {
struct SeqStruct* temp_s0;
temp_s0 = &_ss_score[arg0][arg1];
func_80021F0C();
SpuVmDamperOff();
temp_s0->programs[temp_s0->channel] = temp_s0->channel;
temp_s0->unk13 = 0;
temp_s0->unk14 = 0;
temp_s0->vol[temp_s0->channel] = 0x7f;
temp_s0->panpot[temp_s0->channel] = 64;
temp_s0->delta_value = _SsReadDeltaValue(arg0, arg1);
}

INCLUDE_ASM("main/nonmatchings/psxsdk/libsnd/seqread", _SsContNrpn1);

Expand Down

0 comments on commit 9f9238d

Please sign in to comment.