-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmusic.h
73 lines (64 loc) · 1.83 KB
/
music.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
Copyright (C) 2005 Michael K. McCarty & Fritz Bronner
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
enum music_track {
M_ASSEMBLY,
M_ASTTRNG,
M_BADNEWS,
M_DRUMSM,
M_ELEPHANT,
M_FILLER,
M_FUTURE,
M_GOOD,
M_HARDWARE,
M_HISTORY,
M_INTEL,
M_INTELLEG,
M_INTERLUD,
M_LIFTOFF,
M_MISSPLAN,
M_NEW1950,
M_NEW1970,
M_PRES,
M_PRGMTRG,
M_RD,
M_SOVTYP,
M_SUCCESS,
M_SVFUN,
M_SVLOGO,
M_SVPORT,
M_THEME,
M_UNSUCC,
M_USFUN,
M_USMIL,
M_USPORT,
M_USSRMIL,
M_VICTORY,
M_MAX_MUSIC
};
// Start a given track, and indicate if the track should loop when complete
#define music_start(track) music_start_loop(track, 1)
#define music_start_once(track) music_start_loop(track, 0)
void music_start_loop(enum music_track track, int loop);
// Stop a given track from playing, or all playing tracks
void music_stop();
void music_stop_all();
// Checks to see if a particular track_name is playing, or if any track is playing
int music_is_playing();
int music_is_track_playing(enum music_track track);
// Do any periodic work that the music system might need
// Called at least 20 times per second
void music_pump();
// Toggle muting of the music system
void music_set_mute(int muted);