PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
sscall.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 SsSeqCalledTbyT(void)
14{
15 if ( _snd_ev_flag != 1 )
16 {
17 int sep_no;
18
19 _snd_ev_flag = 1;
20
21 _SsVmFlush();
22 for ( sep_no = 0; sep_no < _snd_seq_s_max; sep_no += 1 )
23 {
24 if ( (_snd_openflag & (1 << sep_no)) != 0 )
25 {
26 int seq_no;
27
28 for ( seq_no = 0; seq_no < _snd_seq_t_max; seq_no += 1 )
29 {
30 libsnd2_sequence_struct_t *score_struct;
31
32 score_struct = &_ss_score[sep_no][seq_no];
33 if ( (score_struct->m_flags & 1) != 0 )
34 {
35 _SsSndPlay(sep_no, seq_no);
36 if ( (score_struct->m_flags & 0x10) != 0 )
37 {
38 _SsSndCrescendo(sep_no, seq_no);
39#ifdef LIB_1300
40 printf("--- _SsSndCrescendo ---\n");
41#endif
42 }
43 if ( (score_struct->m_flags & 0x20) != 0 )
44 {
45 _SsSndCrescendo(sep_no, seq_no);
46#ifdef LIB_1300
47 printf("--- _SsSndCrescendo(DE) ---\n");
48#endif
49 }
50 if ( (score_struct->m_flags & 0x40) != 0 )
51 {
52 _SsSndTempo(sep_no, seq_no);
53#ifdef LIB_1300
54 printf("--- _SsSndTempo(ACE) ---\n");
55#endif
56 }
57 if ( (score_struct->m_flags & 0x80) != 0 )
58 {
59 _SsSndTempo(sep_no, seq_no);
60#ifdef LIB_1300
61 printf("--- _SsSndTempo(RIT) ---\n");
62#endif
63 }
64 }
65 if ( (score_struct->m_flags & 2) != 0 )
66 {
67 _SsSndPause(sep_no, seq_no);
68#ifdef LIB_1300
69 printf("--- _SsSndPause ---\n");
70#endif
71 }
72 if ( (score_struct->m_flags & 8) != 0 )
73 {
74 _SsSndReplay(sep_no, seq_no);
75#ifdef LIB_1300
76 printf("--- _SsSndReplay ---\n");
77#endif
78 }
79 if ( (score_struct->m_flags & 4) != 0 )
80 {
81 _SsSndStop(sep_no, seq_no);
82 score_struct->m_flags = 0;
83#ifdef LIB_1300
84 printf("--- _SsSndStop ---\n");
85#endif
86 }
87 }
88 }
89 }
90 _snd_ev_flag = 0;
91 }
92}