4 Super Tux - Audio Functions
7 bill@newbreedsoftware.com
8 http://www.newbreedsoftware.com/supertux/
10 April 22, 2000 - July 15, 2002
13 #ifndef SUPERTUX_SOUND_H
14 #define SUPERTUX_SOUND_H
16 /*all the sounds we have*/
21 #include <SDL_mixer.h>
23 // variables for stocking the sound and music
24 Mix_Chunk* sounds[NUM_SOUNDS];
27 // functions handling the sound and music
28 Mix_Chunk * load_sound(char * file);
29 void playsound(Mix_Chunk * snd);
30 Mix_Music * load_song(char * file);
32 int playing_music(void);
34 int play_music(Mix_Music*music, int loops);
35 void free_music(Mix_Music*music);
36 void free_chunk(Mix_Chunk*chunk);
41 void* sounds[NUM_SOUNDS];
44 // fake sound handlers
45 void* load_sound(void* file);
46 void playsound(void * snd);
47 void* load_song(void* file);
48 int Mix_PlayingMusic();
53 int Mix_OpenAudio(int a, int b, int c, int d);
57 int play_music(int *music, int loops);
58 void free_music(int *music);;
59 void free_chunk(int *chunk);
63 #endif /*SUPERTUX_SOUND_H*/