11#include "libsnd2_internal.h"
13void _SsGetMetaEvent(s16 sep_no, s16 seq_no, u8 meta_event)
26 score_struct = &_ss_score[sep_no][seq_no];
27 v4 = *(score_struct->m_seq_ptr);
28 score_struct->m_seq_ptr += 1;
29 v6 = *(score_struct->m_seq_ptr);
30 score_struct->m_seq_ptr += 1;
31 v7 = 60000000 / ((v4 << 16) | (v6 << 8) | *(score_struct->m_seq_ptr));
32 score_struct->m_seq_ptr += 1;
33 v8 = score_struct->m_resolution_of_quarter_note * v7;
35 v10 = 16 * VBLANK_MINUS;
36 score_struct->m_unk94 = v7;
45 score_struct->m_unk52 = v13;
46 score_struct->m_unk54 = v13;
53 v15 = 10 * score_struct->m_resolution_of_quarter_note * score_struct->m_unk94 / v11;
54 v16 = 10 * score_struct->m_resolution_of_quarter_note * score_struct->m_unk94 % v11;
55 score_struct->m_unk52 = -1;
56 score_struct->m_unk54 = v15;
57 if ( (
unsigned int)(2 * (v10 - v9)) < v16 )
59 score_struct->m_unk54 = v15 + 1;
62 score_struct->m_delta_value = _SsReadDeltaValue(sep_no, seq_no);