PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
s_svsa.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 "libspu2_internal.h"
12
13
static
void
__attribute__
((optimize(
"no-unroll-loops"
))) _spu_wait_SpuSetVoiceStartAddr(
void
)
14
{
15
int
i;
16
int
v1;
17
18
v1 = 1;
19
for
( i = 0; i < 2; i += 1 )
20
{
21
v1 *= 13;
22
__asm__ __volatile__(
""
:
"+g"
(v1) : :);
23
}
24
}
25
26
void
SpuSetVoiceStartAddr(
int
v_num,
unsigned
int
start_addr)
27
{
28
_spu_FsetRXX(6 * v_num + 224, (start_addr >> 4) << 4, 1);
29
_spu_wait_SpuSetVoiceStartAddr();
30
}
__attribute__
typedef __attribute__
Definition
tlbfunc.c:60
iop
sound
libspu2
src
s_svsa.c
Generated on Tue Feb 11 2025 21:35:59 for PS2SDK by
1.12.0