4 Super Tux - Audio Functions
7 bill@newbreedsoftware.com
8 http://www.newbreedsoftware.com/supertux/
10 April 22, 2000 - July 15, 2002
21 #include <SDL_image.h>
23 #include <SDL_mixer.h>
27 #include <sys/types.h>
37 /* --- LOAD A SOUND --- */
39 Mix_Chunk * load_sound(char * file)
45 snd = Mix_LoadWAV(file);
48 st_abort("Can't load", file);
57 /* --- PLAY A SOUND --- */
59 void playsound(Mix_Chunk * snd)
61 Mix_PlayChannel(-1, snd, 0);
65 /* --- LOAD A SONG --- */
67 Mix_Music * load_song(char * file)
73 sng = Mix_LoadMUS(file);
76 st_abort("Can't load", file);