]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/source/base/snd.qc
Recommit some changes that have been overwritten.
[divverent/nexuiz.git] / scmenu / source / base / snd.qc
1 // NG-Menu
2 // base/snd.qc
3
4 void( string pText ) _Sound_DPrint =
5 {
6         if( sys_debug_sound )
7                 print( pText );
8 };
9
10 bool( string pSnd )  Sound_Precache =
11 {
12         _Sound_DPrint( strcat( "Precaching sound '", pSnd, "'\n" ) );
13         if( pSnd == "" )
14                 return false;
15         if( pSnd != precache_sound( pSnd ) )
16                 return false;
17         else
18                 return true;
19 };
20
21 void( string pSnd ) Sound_Free =
22 {
23 };
24
25 void( string pSnd) Sound_Play =
26 {
27         if( pSnd ) {
28                 _Sound_DPrint( strcat( "Playing sound '", pSnd, "'\n" ) );
29                 localsound( pSnd );
30         }
31 };
32