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*/
22 /* enum of different internal music types */
33 #include <SDL_mixer.h>
35 /* variables for stocking the sound and music */
36 Mix_Chunk* sounds[NUM_SOUNDS];
37 Mix_Music* level_song, *herring_song;
39 /* functions handling the sound and music */
40 int open_audio(int frequency, Uint16 format, int channels, int chunksize);
42 Mix_Chunk * load_sound(char * file);
43 void play_sound(Mix_Chunk * snd);
44 Mix_Music * load_song(char * file);
46 int playing_music(void);
48 int play_music(Mix_Music*music, int loops);
49 void free_music(Mix_Music*music);
50 void free_chunk(Mix_Chunk*chunk);
55 void* sounds[NUM_SOUNDS];
56 void* level_song, *herring_song;
58 // fake sound handlers
59 int open_audio (int frequency, int format, int channels, int chunksize);
61 void* load_sound(void* file);
62 void play_sound(void * snd);
63 void* load_song(void* file);
67 int play_music(void *music, int loops);
68 void free_music(void *music);;
69 void free_chunk(void *chunk);
73 #endif /*SUPERTUX_SOUND_H*/