Debian Codegraph @

src/sfx.h

raw
1 /**
2 * Sound (not music) management
3
4 * Copyright (C) 1997, 1998, 1999, 2002, 2003 Seth A. Robinson
5 * Copyright (C) 2003 Shawn Betts
6 * Copyright (C) 2005, 2007 Sylvain Beucler
7
8 * This file is part of GNU FreeDink
9
10 * GNU FreeDink is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 3 of the
13 * License, or (at your option) any later version.
14
15 * GNU FreeDink is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
19
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see
22 * <http://www.gnu.org/licenses/>.
23 */
24
25 #ifndef _SFX_H
26 #define _SFX_H
27
28 #include "SDL_mixer.h"
29
30 extern /*bool*/int sound_on;
31
32 extern void sfx_init();
33 extern void sfx_quit();
34 extern int CreateBufferFromWaveFile(char* filename, int dwBuf);
35 extern int CreateBufferFromWaveFile_RW(SDL_RWops* rwops, int rwfreesrc, int index);
36 extern void EditorSoundPlayEffect(int sound);
37 extern int SoundPlayEffect(int sound, int min, int plus, int sound3d, /*bool*/int repeat);
38 extern int playing(int sound);
39 extern int SoundStopEffect(int sound);
40 extern void kill_repeat_sounds(void);
41 extern void kill_repeat_sounds_all(void);
42 extern void sfx_log_meminfo(void);
43 extern void sfx_cleanup_finished_channels(void);
44 extern void update_sound(void);
45
46 /* DinkC procedures */
47 extern int playsound(int sound, int min, int plus, int sound3d, int repeat);
48 extern void sound_set_kill(int soundbank);
49 extern void sound_set_survive(int soundbank, int survive);
50 extern void sound_set_vol(int soundbank, int volume);
51
52 #endif