PS2SDK
PS2 Homebrew Libraries
de_1.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 void _SsSetNrpnVabAttr1(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
14 {
15  (void)fn_idx;
16 
17  SsUtGetVagAtr(vab_id, prog, tone, &vag_attr);
18  vag_attr.mode = attribute_value;
19  SsUtSetVagAtr(vab_id, prog, tone, &vag_attr);
20  switch ( attribute_value )
21  {
22  case 0:
23  SsUtReverbOff();
24  break;
25  case 4:
26  SsUtReverbOn();
27  break;
28  default:
29  break;
30  }
31 }
VagAtr
Definition: libsnd2.h:172