PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ssnext.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
13void SsSetNext(s16 sep_no1, s16 seq_no1, s16 sep_no2, s16 seq_no2)
14{
15 libsnd2_sequence_struct_t *score_struct_1;
16 libsnd2_sequence_struct_t *score_struct_2;
17
18 score_struct_1 = &_ss_score[sep_no1][seq_no1];
19 score_struct_1->m_next_seq = seq_no2;
20 score_struct_1->m_next_sep = sep_no2;
21 score_struct_2 = &_ss_score[sep_no2][seq_no2];
22 score_struct_2->m_flags |= 0x100u;
23 score_struct_2->m_play_mode = SSPLAY_PAUSE;
24}
25
26void SsSeqSetNext(s16 sep_no1, s16 sep_no2)
27{
28 libsnd2_sequence_struct_t *score_struct_1;
29 libsnd2_sequence_struct_t *score_struct_2;
30
31 score_struct_1 = &_ss_score[sep_no1][0];
32 score_struct_1->m_next_sep = sep_no2;
33 score_struct_1->m_next_seq = 0;
34 score_struct_2 = &_ss_score[sep_no2][0];
35 score_struct_2->m_flags |= 0x100u;
36 score_struct_2->m_play_mode = SSPLAY_PAUSE;
37}