FS2_Open
Open source remastering of the Freespace 2 engine
speech.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 _SPEECH_H_
10 #define _SPEECH_H_
11 
12 
13 #if FS2_SPEECH
14 
15 const int MAX_SPEECH_CHAR_LEN = 10000;
16 
17 bool speech_init();
18 void speech_deinit();
19 bool speech_play(const char *text);
20 bool speech_pause();
21 bool speech_resume();
22 bool speech_stop();
23 
24 bool speech_set_volume(unsigned short volume);
25 bool speech_set_voice(int voice);
26 
27 bool speech_is_speaking();
28 
29 #else
30 
31 // Goober5000: see, the *real* way to do stubs (avoiding the warnings)
32 // is to just use #defines (c.f. NO_SOUND)
33 #define speech_init() (false)
34 #define speech_deinit()
35 #define speech_play(text) ((text), false)
36 #define speech_pause() (false)
37 #define speech_resume() (false)
38 #define speech_stop() (false)
39 #define speech_set_volume(volume) ((volume), false)
40 #define speech_set_voice(voice) ((voice), false)
41 #define speech_is_speaking() (false)
42 
43 #endif
44 
45 #endif
#define speech_play(text)
Definition: speech.h:35
#define speech_set_volume(volume)
Definition: speech.h:39
#define speech_pause()
Definition: speech.h:36
#define speech_stop()
Definition: speech.h:38
#define speech_is_speaking()
Definition: speech.h:41
#define speech_resume()
Definition: speech.h:37
#define speech_deinit()
Definition: speech.h:34
#define speech_init()
Definition: speech.h:33
#define speech_set_voice(voice)
Definition: speech.h:40