PS2SDK
PS2 Homebrew Libraries
ut_autov.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 s16 SsUtAutoVol(s16 vc, s16 start_vol, s16 end_vol, s16 delta_time)
14 {
15  _autovol = (libsnd2_auto_vol_pan_callback)SetAutoVol;
16  if ( (u16)vc >= 0x18u )
17  return -1;
18  SeAutoVol(vc, start_vol, end_vol, delta_time);
19  return 0;
20 }