sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
s_gvara.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
SpuGetVoiceARAttr(
int
v_num, u16 *ar,
int
*ar_mode)
14
{
15
u16 v3;
16
17
v3 = _spu_RXX[512 * _spu_core + 3 + 8 * (v_num & 0x1F)];
18
*ar = (v3 >> 8) & 0x3F;
19
*ar_mode = SPU_VOICE_LINEARIncN;
20
if
( (v3 & 0x8000) != 0 )
21
*ar_mode = SPU_VOICE_EXPIncN;
22
}
libspu2_internal.h
core
libspu2
src
s_gvara.c
Generated by
1.18.0