11#include "libsnd2_internal.h"
13void SsSetTempo(s16 sep_no, s16 seq_no, s16 tempo)
21 score_struct = &_ss_score[sep_no][seq_no];
22 v4 = score_struct->m_resolution_of_quarter_note * tempo;
24 v6 = 15 * VBLANK_MINUS;
25 score_struct->m_unk94 = tempo;
27 if ( 10 * v4 < (
unsigned int)(4 * v6) )
34 score_struct->m_unk52 = v9;
35 score_struct->m_unk54 = v9;
42 v11 = 10 * score_struct->m_resolution_of_quarter_note * score_struct->m_unk94 / v7;
43 v12 = 10 * score_struct->m_resolution_of_quarter_note * score_struct->m_unk94 % v7;
44 score_struct->m_unk52 = -1;
45 score_struct->m_unk54 = v11;
46 if ( (
unsigned int)(2 * v6) < v12 )
48 score_struct->m_unk54 = v11 + 1;
51 score_struct->m_unk56 = score_struct->m_unk54;