PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ssclose.c
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#include "libsnd2_internal.h"
12
13static void _SsClose(s16 seq_sep_no)
14{
15 int sep_no;
16 int seq_no;
17
18 _SsVmSetSeqVol(seq_sep_no, 0, 0);
19 _SsVmSeqKeyOff(seq_sep_no);
20 _snd_openflag &= ~(1 << seq_sep_no);
21 sep_no = seq_sep_no;
22 for ( seq_no = 0; seq_no < _snd_seq_t_max; seq_no += 1 )
23 {
24 libsnd2_sequence_struct_t *score_struct;
25
26 score_struct = &_ss_score[sep_no][seq_no];
27 score_struct->m_flags = 0;
28 score_struct->m_next_sep = 255;
29 score_struct->m_next_seq = 0;
30 score_struct->m_unk48 = 0;
31 score_struct->m_unk4A = 0;
32 score_struct->m_unk9C = 0;
33 score_struct->m_unkA0 = 0;
34 score_struct->m_unk4C = 0;
35 score_struct->m_unkAC = 0;
36 score_struct->m_unkA8 = 0;
37 score_struct->m_unkA4 = 0;
38 score_struct->m_unk4E = 0;
39 score_struct->m_voll = 127;
40 score_struct->m_volr = 127;
41 }
42}
43
44void SsSeqClose(s16 seq_sep_no)
45{
46 _SsClose(seq_sep_no);
47}
48
49void SsSepClose(s16 seq_sep_no)
50{
51 _SsClose(seq_sep_no);
52}