PS2SDK
PS2 Homebrew Libraries
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
c
d
e
f
g
i
l
m
n
p
q
r
s
t
u
v
Variables
_
c
d
f
g
i
k
m
n
p
q
r
s
t
u
v
w
Typedefs
a
d
h
i
l
m
n
p
r
s
t
w
Enumerations
_
a
c
d
g
i
l
m
n
o
p
s
t
v
Enumerator
c
d
e
g
i
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
s_gvv.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
void
SpuGetVoiceVolume(
int
v_num, s16 *voll, s16 *volr)
14
{
15
const
vu16 *v3;
16
u16 v4;
17
u16 v5;
18
19
v3 = &_spu_RXX[512 * _spu_core + 8 * (v_num & 0x1F)];
20
v4 = v3[1];
21
v5 = v3[0];
22
if
( v5 < 0x4000 )
23
*voll = v5;
24
else
25
*voll = v5 + 0x8000;
26
if
( v4 < 0x4000u )
27
*volr = v4;
28
else
29
*volr = v4 + 0x8000;
30
}
iop
sound
libspu2
src
s_gvv.c
Generated on Sat May 17 2025 02:56:35 for PS2SDK by
1.12.0