1 /* $Id: songs.h,v 1.3 2004-08-28 23:17:45 schaffner Exp $ */
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
24 typedef struct song_info {
26 char melodic_bank_file[16];
27 char drum_bank_file[16];
30 extern song_info Songs[];
34 #define SONG_BRIEFING 3 // endgame and briefing the same
36 #define SONG_BRIEFING 1
38 #define SONG_ENDLEVEL 2
39 #define SONG_ENDGAME 3
40 #define SONG_CREDITS 4
41 #define SONG_FIRST_LEVEL_SONG 5
45 #define MAX_NUM_SONGS 9
48 #define MAX_NUM_SONGS 30
49 extern int Num_songs; //how many MIDI songs
52 //whether or not redbook audio should be played
53 extern int Redbook_enabled;
54 extern int Redbook_playing; // track that is currently playing
56 void songs_play_song( int songnum, int repeat );
57 void songs_play_level_song( int levelnum );
59 // stop the redbook, so we can read off the CD
60 void songs_stop_redbook(void);
62 // stop any songs - midi or redbook - that are currently playing
63 void songs_stop_all(void);
65 // this should be called regularly to check for redbook restart
66 void songs_check_redbook_repeat(void);