3 * Miguel Ángel Vilela García - 8/29/03
5 * Copyright (C) 2003 Miguel Ángel Vilela García
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 * Miguel Ángel Vilela García - www.miguev.net
32 #include <SDL/SDL_mixer.h>
36 #define GC_MUSIC_FILENAME_LENGTH 128
37 #define GC_MUSIC_PRELUDE_TRACK "prelude"
38 #define GC_MUSIC_GAME_TRACK "game"
39 #define GC_MUSIC_GAMEOVER_TRACK "gameover"
40 #define GC_MUSIC_YOUWIN_TRACK "youwin"
44 static void initialize ( );
46 static void play_prelude();
47 static void play_game();
48 static void play_gameover();
49 static void play_youwin();
53 static void fadeout( int ms
);
54 static void cleanup ( );
57 static void play_track( char *track
);
58 static void finished();