music.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2005 Michael K. McCarty & Fritz Bronner
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017 */
00018 
00019 enum music_track {
00020     M_ASSEMBLY,
00021     M_ASTTRNG,
00022     M_BADNEWS,
00023     M_DRUMSM,
00024     M_ELEPHANT,
00025     M_FILLER,
00026     M_FUTURE,
00027     M_GOOD,
00028     M_HARDWARE,
00029     M_HISTORY,
00030     M_INTEL,
00031     M_INTELLEG,
00032     M_INTERLUD,
00033     M_LIFTOFF,
00034     M_MISSPLAN,
00035     M_NEW1950,
00036     M_NEW1970,
00037     M_PRES,
00038     M_PRGMTRG,
00039     M_RD,
00040     M_SOVTYP,
00041     M_SUCCESS,
00042     M_SVFUN,
00043     M_SVLOGO,
00044     M_SVPORT,
00045     M_THEME,
00046     M_UNSUCC,
00047     M_USFUN,
00048     M_USMIL,
00049     M_USPORT,
00050     M_USSRMIL,
00051     M_VICTORY,
00052     M_MAX_MUSIC
00053 };
00054 
00055 // Start a given track, and indicate if the track should loop when complete
00056 #define music_start(track) music_start_loop(track, 1)
00057 #define music_start_once(track) music_start_loop(track, 0)
00058 void music_start_loop(enum music_track track, int loop);
00059 
00060 // Stop a given track from playing, or all playing tracks
00061 void music_stop();
00062 void music_stop_all();
00063 
00064 // Checks to see if a particular track_name is playing, or if any track is playing
00065 int music_is_playing();
00066 int music_is_track_playing(enum music_track track);
00067 
00068 // Do any periodic work that the music system might need
00069 // Called at least 20 times per second
00070 void music_pump();
00071 
00072 // Toggle muting of the music system
00073 void music_set_mute(int muted);

Generated on Fri Sep 28 00:35:45 2007 for raceintospace by  doxygen 1.5.3