FS2_Open
Open source remastering of the Freespace 2 engine
rtvoice.h
Go to the documentation of this file.
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 the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef __RTVOICE_H__
13 #define __RTVOICE_H__
14 
15 // general
16 void rtvoice_set_qos(int qos);
17 
18 // recording
19 int rtvoice_init_recording(int qos);
21 int rtvoice_start_recording( void (*user_callback)() = NULL, int callback_time = 175 );
23 void rtvoice_get_data(unsigned char **outbuf, int *size, double *gain);
24 
25 // playback
28 
31 
32 void rtvoice_uncompress(unsigned char *data_in, int size_in, double gain, unsigned char *data_out, int size_out);
33 
34 // return a sound handle, _NOT_ a buffer handle
35 int rtvoice_play(int handle, unsigned char *data, int size);
36 
37 // pass in buffer handle returned from rtvoice_create_playback_buffer(), kills the _sound_ only
38 void rtvoice_stop_playback(int handle);
40 
41 #endif
void rtvoice_uncompress(unsigned char *data_in, int size_in, double gain, unsigned char *data_out, int size_out)
Definition: rtvoice.cpp:300
GLuint index
Definition: Glext.h:5608
GLsizeiptr size
Definition: Glext.h:5496
void rtvoice_stop_playback(int handle)
Definition: rtvoice.cpp:399
void rtvoice_set_qos(int qos)
Definition: rtvoice.cpp:140
void rtvoice_get_data(unsigned char **outbuf, int *size, double *gain)
Definition: rtvoice.cpp:279
void rtvoice_free_playback_buffer(int index)
Definition: rtvoice.cpp:420
int rtvoice_init_recording(int qos)
Definition: rtvoice.cpp:149
int rtvoice_create_playback_buffer()
Definition: rtvoice.cpp:378
void rtvoice_close_playback()
Definition: rtvoice.cpp:308
int rtvoice_play(int handle, unsigned char *data, int size)
Definition: rtvoice.cpp:437
void rtvoice_close_recording()
Definition: rtvoice.cpp:209
GLenum GLsizei GLenum GLenum const GLvoid * data
Definition: Gl.h:1509
int rtvoice_init_playback()
Definition: rtvoice.cpp:332
void rtvoice_stop_playback_all()
Definition: rtvoice.cpp:410
int rtvoice_start_recording(void(*user_callback)()=NULL, int callback_time=175)
Definition: rtvoice.cpp:233
void rtvoice_stop_recording()
Definition: rtvoice.cpp:187