11#include "libsnd2_internal.h"
13void SsSetTableSize(
char *table, s16 s_max, s16 t_max)
16 unsigned int openflag_i;
19 _snd_seq_s_max = s_max;
20 _snd_seq_t_max = t_max;
21 for ( typed_table_i = 0; typed_table_i < s_max; typed_table_i += 1 )
23 _ss_score[typed_table_i] =
26 for ( openflag_i = s_max; openflag_i < 32; openflag_i += 1 )
28 _snd_openflag |= (u32)1 << openflag_i;
30 for ( i = 0; i < _snd_seq_s_max; i += 1 )
35 for ( j = 0; j < _snd_seq_t_max; j += 1 )
39 score_struct = &_ss_score[i][j];
40 score_struct->m_flags = 0;
41 score_struct->m_next_sep = 255;
42 score_struct->m_next_seq = 0;
43 score_struct->m_unk48 = 0;
44 score_struct->m_unk4A = 0;
45 score_struct->m_unk9C = 0;
46 score_struct->m_unkA0 = 0;
47 score_struct->m_unk4C = 0;
48 score_struct->m_unkAC = 0;
49 score_struct->m_unkA8 = 0;
50 score_struct->m_unkA4 = 0;
51 score_struct->m_unk4E = 0;
52 score_struct->m_voll = 127;
53 score_struct->m_volr = 127;
54 score_struct->m_unk5C = 127;
55 score_struct->m_unk5E = 127;