PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ssinit.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
13
unsigned
int
_snd_vmask = 0u;
14
static
s16 volume_dat_2[16] = {16383, 16383, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
15
16
libsnd2_sequence_marker_t
_SsMarkCallback[32];
17
int
VBLANK_MINUS;
18
unsigned
int
_snd_openflag;
19
int
_snd_ev_flag;
20
_SsFCALL
SsFCALL;
21
libsnd2_sequence_struct_t
*_ss_score[32];
22
s16 _snd_seq_s_max;
23
s16 _snd_seq_t_max;
24
25
void
_SsInit(
void
)
26
{
27
s16 *reg_set_ptr;
28
int
i;
29
int
j;
30
31
reg_set_ptr = (s16 *)0xBF900760;
32
for
( i = 0; i < 16; i += 1 )
33
{
34
reg_set_ptr[i] = volume_dat_2[i];
35
}
36
_SsVmInit(24);
37
for
( j = 0; j < 32; j += 1 )
38
{
39
for
( i = 0; i < 16; i += 1 )
40
{
41
_SsMarkCallback[j].m_entries[i] = 0;
42
}
43
}
44
VBLANK_MINUS = 60;
45
_snd_openflag = 0;
46
_snd_ev_flag = 0;
47
}
_SsFCALL_
Definition
libsnd2.h:235
libsnd2_sequence_marker_
Definition
libsnd2_internal.h:43
libsnd2_sequence_struct_
Definition
libsnd2_internal.h:48
iop
sound
libsnd2
src
ssinit.c
Generated on Tue Feb 11 2025 21:35:59 for PS2SDK by
1.12.0