FS2_Open
Open source remastering of the Freespace 2 engine
fsspeech.h
Go to the documentation of this file.
1 /*
2  * Code created by Thomas Whittaker (RT) for a FreeSpace 2 source code project
3  *
4  * You may not sell or otherwise commercially exploit the source or things you
5  * created based on the source.
6  *
7 */
8 
9 #ifndef _FSSPEECH_H_
10 #define _FSSPEECH_H_
11 
12 enum
13 {
19 };
20 
21 #ifdef FS2_SPEECH
22 
23 bool fsspeech_init();
24 void fsspeech_deinit();
25 void fsspeech_play(int type, const char *text);
26 void fsspeech_stop();
27 void fsspeech_pause(bool playing);
28 
30 void fsspeech_stuff_buffer(const char *text);
31 void fsspeech_play_buffer(int type);
32 
33 bool fsspeech_play_from(int type);
34 bool fsspeech_playing();
35 
36 inline bool fsspeech_was_compiled() { return true; }
37 
38 #else
39 
40 // stub functions (c.f. NO_SOUND)
41 
42 inline bool fsspeech_init() { return false; }
43 inline void fsspeech_deinit() {}
44 inline void fsspeech_play(int type, const char *text) { }
45 inline void fsspeech_stop() {}
46 inline void fsspeech_pause(bool playing) { }
47 
48 inline void fsspeech_start_buffer() {}
49 inline void fsspeech_stuff_buffer(const char *text) { }
50 inline void fsspeech_play_buffer(int type) {}
51 
52 inline bool fsspeech_play_from(int type) { return false; }
53 inline bool fsspeech_playing() { return false; }
54 inline bool fsspeech_was_compiled( ) { return false; }
55 
56 #endif
57 
58 #endif // header define
void fsspeech_pause(bool playing)
Definition: fsspeech.h:46
void fsspeech_stop()
Definition: fsspeech.h:45
bool fsspeech_init()
Definition: fsspeech.h:42
GLenum type
Definition: Gl.h:1492
void fsspeech_start_buffer()
Definition: fsspeech.h:48
bool fsspeech_was_compiled()
Definition: fsspeech.h:54
void fsspeech_play(int type, const char *text)
Definition: fsspeech.h:44
void fsspeech_play_buffer(int type)
Definition: fsspeech.h:50
bool fsspeech_play_from(int type)
Definition: fsspeech.h:52
void fsspeech_deinit()
Definition: fsspeech.h:43
void fsspeech_stuff_buffer(const char *text)
Definition: fsspeech.h:49
bool fsspeech_playing()
Definition: fsspeech.h:53