Skip to content

Commit

Permalink
snd pause
Browse files Browse the repository at this point in the history
  • Loading branch information
sozud committed Feb 6, 2024
1 parent d242de0 commit 6c07482
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/snd/libsnd_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,6 @@ extern s32 _svm_brr_start_addr[];
extern s16 _svm_damper;

void SpuVmSeKeyOff(s32, u8, u16, u8);
s32 SpuVmSeqKeyOff(s32, s32);

#endif
9 changes: 9 additions & 0 deletions src/snd/pause.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "libsnd_i.h"

void _SsSndPause(s16 arg0, s16 arg1) {
struct SeqStruct* temp_s2;
temp_s2 = &_ss_score[arg0][arg1];
SpuVmSeqKeyOff(arg1 << 8 | arg0, arg1 << 8);
temp_s2->unk2b = 0;
_ss_score[arg0][arg1].unk90 &= ~2;
}

0 comments on commit 6c07482

Please sign in to comment.