1 /*
2 Copyright (C) 2003 Cedric Cellier, Dominique Lavault
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17 */
18 #ifndef SOUND_H
19 #define SOUND_H
20 
21 extern unsigned nb_musics;
22 extern unsigned nb_samples;
23 
24 /* takes 0 if no sounds, 1 if sounds are on */
25 extern void sound_init(int);
26 extern void sound_end();
27 extern void sound_music_start(unsigned);
28 extern void sound_music_stop();
29 extern void sound_update();
30 /* index of sample, volume (0-255), freq (1=normal), pan (0-255) */
31 extern void sound_sample_start(unsigned, unsigned, float, unsigned);
32 
33 #endif
34