28 const int MAX_SPEECH_BUFFER_LEN = 4096;
30 static int speech_inited = 0;
41 char Speech_buffer[MAX_SPEECH_BUFFER_LEN] =
"";
42 int Speech_buffer_len;
61 FSSpeech_play_from[
i] =
91 if(type >= FSSPEECH_FROM_MAX)
return;
93 if(type >= 0 && FSSpeech_play_from[type] ==
false)
return;
120 Speech_buffer_len = 0;
121 Speech_buffer[0] =
'\0';
129 int len = strlen(text);
131 if(Speech_buffer_len + len < MAX_SPEECH_BUFFER_LEN) {
135 Speech_buffer_len +=
len;
149 Assert(type >= 0 && type < FSSPEECH_FROM_MAX);
151 return (speech_inited && FSSpeech_play_from[type]);
163 #endif // FS2_SPEECH defined
void fsspeech_pause(bool playing)
uint os_config_read_uint(const char *section, const char *name, uint default_value)
#define speech_play(text)
#define speech_set_volume(volume)
void fsspeech_start_buffer()
#define speech_is_speaking()
void fsspeech_play(int type, const char *text)
void fsspeech_play_buffer(int type)
bool fsspeech_play_from(int type)
void fsspeech_stuff_buffer(const char *text)
int Cmdline_freespace_no_sound
#define speech_set_voice(voice)