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 #define NUM_SOUNDS 16 // all the sounds we have
20 #include <SDL_mixer.h>
22 // variables for stocking the sound and music
23 Mix_Chunk* sounds[NUM_SOUNDS];
26 // functions handling the sound and music
27 Mix_Chunk * load_sound(char * file);
28 void playsound(Mix_Chunk * snd);
29 Mix_Music * load_song(char * file);
31 int playing_music(void);
33 int play_music(Mix_Music*music, int loops);
34 void free_music(Mix_Music*music);
35 void free_chunk(Mix_Chunk*chunk);
40 void* sounds[NUM_SOUNDS];
43 // fake sound handlers
44 void* load_sound(void* file);
45 void playsound(void * snd);
46 void* load_song(void* file);
47 int Mix_PlayingMusic();
52 int Mix_OpenAudio(int a, int b, int c, int d);
56 int play_music(int *music, int loops);
57 void free_music(int *music);;
58 void free_chunk(int *chunk);
62 #endif /*SUPERTUX_SOUND_H*/