1 ///////////////////////////////////////////////
3 ///////////////////////
4 // This file belongs to dpmod/darkplaces
5 // AK contains all manager constants, etc.
6 ///////////////////////////////////////////////
10 snd_loadsound(SOUND_SELECT, SOUND_ENFORCELOADING);
11 snd_loadsound(SOUND_INCREASE, SOUND_ENFORCELOADING);
12 snd_loadsound(SOUND_DECREASE, SOUND_ENFORCELOADING);
13 snd_loadsound(SOUND_ACTION, SOUND_ENFORCELOADING);
14 snd_loadsound(SOUND_STARTGAME, SOUND_ENFORCELOADING);
15 snd_loadsound(SOUND_ENDGAME, SOUND_ENFORCELOADING);
18 void(void) snd_frame =
22 void(void) snd_toggle =
26 void(float keynr, float ascii) snd_keydown =
30 void(void) snd_shutdown =
32 snd_unloadsound(SOUND_SELECT);
33 snd_unloadsound(SOUND_INCREASE);
34 snd_unloadsound(SOUND_DECREASE);
35 snd_unloadsound(SOUND_ACTION);
36 snd_unloadsound(SOUND_STARTGAME);
37 snd_unloadsound(SOUND_ENDGAME);
40 void(string sound_name) snd_play =
42 localsound(sound_name);
45 string(string sound_name, float complain) snd_loadsound =
49 c = precache_sound(sound_name);
51 if(c == "" && complain)
52 error("Couldn't load ", sound_name, " !\n");
56 void(string sound_name) snd_unloadsound =
58 // FIXME: there is now free/unload sound at the moment
59 // at least non that works the way it should