PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
s_gvn.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
SpuGetVoiceNote(
int
v_num, u16 *note)
14
{
15
unsigned
int
v3;
16
int
v4;
17
18
v3 = (u16)_spu_voice_centerNote[_spu_core][v_num];
19
v4 = _spu_pitch2note(v3 >> 8, (u8)v3, _spu_RXX[512 * _spu_core + 2 + 8 * (v_num & 0x1F)]);
20
if
( v4 < 0 )
21
*note = 0;
22
else
23
*note = v4;
24
}
iop
sound
libspu2
src
s_gvn.c
Generated on Tue Feb 11 2025 21:35:59 for PS2SDK by
1.12.0