PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ssreplay.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 _SsSndSetReplayMode(s16 sep_no, s16 seq_no)
14{
15 libsnd2_sequence_struct_t *score_struct;
16 unsigned int m_flags;
17
18 score_struct = &_ss_score[sep_no][seq_no];
19 m_flags = score_struct->m_flags;
20 if ( (m_flags & 0x204) == 0 && (m_flags & 0x100) == 0 )
21 {
22 score_struct->m_flags = m_flags & ~2;
23 score_struct->m_flags |= 8u;
24 score_struct->m_flags |= 1u;
25 }
26}
27
28void SsSeqReplay(s16 sep_no)
29{
30 _SsSndSetReplayMode(sep_no, 0);
31}
32
33void SsSepReplay(s16 sep_no, s16 seq_no)
34{
35 _SsSndSetReplayMode(sep_no, seq_no);
36}