]> icculus.org git repositories - taylor/freespace2.git/blob - include/cutscenes.h
fix issue with looping audio streams
[taylor/freespace2.git] / include / cutscenes.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell 
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Cutscene/Cutscenes.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Code for the cutscenes viewer screen
16  *
17  * $Log$
18  * Revision 1.3  2003/06/11 18:30:32  taylor
19  * plug memory leaks
20  *
21  * Revision 1.2  2002/06/09 04:41:12  relnev
22  * added copyright header
23  *
24  * Revision 1.1.1.1  2002/05/03 03:28:11  root
25  * Initial import.
26  *
27  * 
28  * 2     10/07/98 10:52a Dave
29  * Initial checkin.
30  * 
31  * 1     10/07/98 10:48a Dave
32  * 
33  * 6     5/21/98 12:35a Lawrance
34  * Tweak how CD is checked for
35  * 
36  * 5     5/10/98 10:05p Allender
37  * only show cutscenes which have been seen before.  Made Fred able to
38  * write missions anywhere, defaulting to player misison folder, not data
39  * mission folder.  Fix FreeSpace code to properly read missions from
40  * correct locations
41  * 
42  * 4     5/08/98 5:30p Lawrance
43  * add cutscenes_validate_cd()
44  * 
45  * 3     5/08/98 4:07p Allender
46  * more cutscene stuff
47  * 
48  * 2     4/17/98 6:33p Hoffoss
49  * Made changes to the tech room group of screens.  Cutscenes screen is
50  * now in a new file.
51  *
52  * $NoKeywords: $
53  */
54
55 #ifndef _FREESPACE_CUTSCENES_SCREEN_HEADER_FILE
56 #define _FREESPACE_CUTSCENES_SCREEN_HEADER_FILE
57
58 #include "parselo.h"
59
60 #define MAX_CUTSCENES   10
61
62 // this cutscene is always available.
63 #define INTRO_CUTSCENE_FLAG             (1<<0)
64
65 typedef struct cutscene_info
66 {
67         char            filename[MAX_FILENAME_LEN];
68         char            name[NAME_LENGTH];
69         char            *description;
70         int             cd;
71 } cutscene_info;
72
73 extern cutscene_info Cutscenes[MAX_CUTSCENES];
74 extern int Num_cutscenes;
75 extern int Cutscenes_viewable;
76
77 // initializa table data
78 void cutscene_init();
79 void cutscene_tbl_close();
80
81
82 void cutscenes_screen_init();
83 void cutscenes_screen_close();
84 void cutscenes_screen_do_frame();
85
86 void cutscene_mark_viewable(const char *filename);
87
88 #endif
89