Open source remastering of the Freespace 2 engine
rtvoice.h File Reference

Go to the source code of this file.


void rtvoice_set_qos (int qos)
int rtvoice_init_recording (int qos)
void rtvoice_close_recording ()
int rtvoice_start_recording (void(*user_callback)()=NULL, int callback_time=175)
void rtvoice_stop_recording ()
void rtvoice_get_data (unsigned char **outbuf, int *size, double *gain)
int rtvoice_init_playback ()
void rtvoice_close_playback ()
int rtvoice_create_playback_buffer ()
void rtvoice_free_playback_buffer (int index)
void rtvoice_uncompress (unsigned char *data_in, int size_in, double gain, unsigned char *data_out, int size_out)
int rtvoice_play (int handle, unsigned char *data, int size)
void rtvoice_stop_playback (int handle)
void rtvoice_stop_playback_all ()

Function Documentation

void rtvoice_close_playback ( )

Definition at line 308 of file rtvoice.cpp.

void rtvoice_close_recording ( )

Definition at line 209 of file rtvoice.cpp.

int rtvoice_create_playback_buffer ( )

Definition at line 378 of file rtvoice.cpp.

void rtvoice_free_playback_buffer ( int  index)

Definition at line 420 of file rtvoice.cpp.

void rtvoice_get_data ( unsigned char **  outbuf,
int size,
double *  gain 

Definition at line 279 of file rtvoice.cpp.

int rtvoice_init_playback ( )

Definition at line 332 of file rtvoice.cpp.

int rtvoice_init_recording ( int  qos)

Definition at line 149 of file rtvoice.cpp.

int rtvoice_play ( int  handle,
unsigned char *  data,
int  size 

Definition at line 437 of file rtvoice.cpp.

void rtvoice_set_qos ( int  qos)

Definition at line 140 of file rtvoice.cpp.

int rtvoice_start_recording ( void(*)()  user_callback = NULL,
int  callback_time = 175 

Definition at line 233 of file rtvoice.cpp.

void rtvoice_stop_playback ( int  handle)

Definition at line 399 of file rtvoice.cpp.

void rtvoice_stop_playback_all ( )

Definition at line 410 of file rtvoice.cpp.

void rtvoice_stop_recording ( )

Definition at line 187 of file rtvoice.cpp.

void rtvoice_uncompress ( unsigned char *  data_in,
int  size_in,
double  gain,
unsigned char *  data_out,
int  size_out 

Definition at line 300 of file rtvoice.cpp.