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 int open_audio(int frequency, Uint16 format, int channels, int chunksize);
30 Mix_Chunk * load_sound(char * file);
31 void play_sound(Mix_Chunk * snd);
32 Mix_Music * load_song(char * file);
34 int playing_music(void);
36 int play_music(Mix_Music*music, int loops);
37 void free_music(Mix_Music*music);
38 void free_chunk(Mix_Chunk*chunk);
43 void* sounds[NUM_SOUNDS];
46 // fake sound handlers
47 int open_audio (int frequency, int format, int channels, int chunksize);
49 void* load_sound(void* file);
50 void play_sound(void * snd);
51 void* load_song(void* file);
55 int play_music(int *music, int loops);
56 void free_music(int *music);;
57 void free_chunk(int *chunk);
61 #endif /*SUPERTUX_SOUND_H*/