|
|
@ -146,6 +146,25 @@ static struct xr_wave_format_ex *g_wave_inp_formats[SND_NUM_INP_FORMATS] =
|
|
|
|
static int g_client_input_format_index = 0;
|
|
|
|
static int g_client_input_format_index = 0;
|
|
|
|
static int g_server_input_format_index = 0;
|
|
|
|
static int g_server_input_format_index = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* microphone related */
|
|
|
|
|
|
|
|
static int APP_CC
|
|
|
|
|
|
|
|
sound_send_server_input_formats(void);
|
|
|
|
|
|
|
|
static int APP_CC
|
|
|
|
|
|
|
|
sound_process_input_format(int aindex, int wFormatTag,
|
|
|
|
|
|
|
|
int nChannels, int nSamplesPerSec,
|
|
|
|
|
|
|
|
int nAvgBytesPerSec, int nBlockAlign,
|
|
|
|
|
|
|
|
int wBitsPerSample, int cbSize, char *data);
|
|
|
|
|
|
|
|
static int APP_CC
|
|
|
|
|
|
|
|
sound_process_input_formats(struct stream *s, int size);
|
|
|
|
|
|
|
|
static int APP_CC
|
|
|
|
|
|
|
|
sound_input_start_recording(void);
|
|
|
|
|
|
|
|
static int APP_CC
|
|
|
|
|
|
|
|
sound_input_stop_recording(void);
|
|
|
|
|
|
|
|
static int APP_CC
|
|
|
|
|
|
|
|
sound_process_input_data(struct stream *s, int bytes);
|
|
|
|
|
|
|
|
static int DEFAULT_CC
|
|
|
|
|
|
|
|
sound_sndsrvr_source_data_in(struct trans *trans);
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
|
|
static int APP_CC
|
|
|
|
static int APP_CC
|
|
|
|
sound_send_server_output_formats(void)
|
|
|
|
sound_send_server_output_formats(void)
|
|
|
@ -215,7 +234,6 @@ sound_send_server_output_formats(void)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
static int
|
|
|
|
sound_send_training(void)
|
|
|
|
sound_send_training(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -826,7 +844,6 @@ sound_check_wait_objs(void)
|
|
|
|
trans_delete(g_audio_c_trans_out);
|
|
|
|
trans_delete(g_audio_c_trans_out);
|
|
|
|
g_audio_c_trans_out = 0;
|
|
|
|
g_audio_c_trans_out = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (g_audio_l_trans_in != 0)
|
|
|
|
if (g_audio_l_trans_in != 0)
|
|
|
@ -1015,7 +1032,7 @@ sound_process_input_formats(struct stream *s, int size)
|
|
|
|
*****************************************************************************/
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
static int APP_CC
|
|
|
|
static int APP_CC
|
|
|
|
sound_input_start_recording()
|
|
|
|
sound_input_start_recording(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct stream* s;
|
|
|
|
struct stream* s;
|
|
|
|
|
|
|
|
|
|
|
@ -1049,7 +1066,7 @@ sound_input_start_recording()
|
|
|
|
*****************************************************************************/
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
static int APP_CC
|
|
|
|
static int APP_CC
|
|
|
|
sound_input_stop_recording()
|
|
|
|
sound_input_stop_recording(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct stream* s;
|
|
|
|
struct stream* s;
|
|
|
|
|
|
|
|
|
|
|
|