Avoid non-alpha characters in _qdgdfv_alnum in win32.
[qdgdf.git] / qdgdf_audio.h
blobd456fc236e582d6e6733e18cb831b42b9e662e3c
1 /*
3 Quick and Dirty Game Development Framework (QDGDF)
5 Copyright (C) 2001/2005 Angel Ortega <angel@triptico.com>
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 http://www.triptico.com
25 #ifndef QDGDF_AUDIO_H_
26 #define QDGDF_AUDIO_H_
28 #include <stdio.h>
30 extern int _qdgdfa_sound;
31 extern char _qdgdfa_window_title[150];
32 extern int _qdgdfa_16_bit;
33 extern int _qdgdfa_big_sound_threshold;
35 extern char _qdgdfa_fopen_path[250];
37 extern char *_qdgdfa_version;
39 struct _qdgdfa_driver {
40 char *name;
41 int (*load_sound) (char *);
42 int (*dup_sound) (int);
43 void (*play_sound) (int, int);
44 void (*respawn_sound) (int);
45 void (*stop_sound) (int);
46 void (*set_pan) (int, int);
47 void (*set_attenuation) (int, int);
48 void (*reset) (void);
49 void (*pause) (int);
50 int (*startup) (void);
51 void (*shutdown) (void);
54 FILE *_qdgdfa_fopen(char *file, char *mode);
55 FILE *qdgdfa_fopen(char *file, char *mode);
56 char *qdgdfa_path_find(const char *file);
57 FILE *qdgdfa_load_wav(char *filename, int *size, int *bits);
58 int qdgdfa_load_sound(char *wavfile);
59 int qdgdfa_load_big_sound(char *wavfile);
60 int qdgdfa_dup_sound(int snd);
61 void qdgdfa_play_sound(int snd, int loop);
62 void qdgdfa_respawn_sound(int snd);
63 void qdgdfa_stop_sound(int snd);
64 void qdgdfa_set_pan(int snd, int pan);
65 void qdgdfa_set_attenuation(int snd, int att);
66 void qdgdfa_reset(void);
67 void qdgdfa_pause(int p);
68 char *qdgdfa_home_dir(void);
69 char *qdgdfa_app_dir(void);
70 void qdgdfa_startup(void);
71 void qdgdfa_shutdown(void);
73 #endif /* QDGDF_AUDIO_H_ */