Beispiel #1
0
static int load_module(void)
{
	speex_f.format = ast_format_speex;
	speex16_f.format = ast_format_speex16;
	speex32_f.format = ast_format_speex32;

	if (ast_format_def_register(&speex_f) ||
	    ast_format_def_register(&speex16_f) ||
	    ast_format_def_register(&speex32_f)) {
		return AST_MODULE_LOAD_FAILURE;
	}

	return AST_MODULE_LOAD_SUCCESS;
}
static int load_module(void)
{
	ast_format_set(&wav49_f.format, AST_FORMAT_GSM, 0);
	if (ast_format_def_register(&wav49_f))
		return AST_MODULE_LOAD_FAILURE;
	return AST_MODULE_LOAD_SUCCESS;
}
Beispiel #3
0
static int load_module(void)
{
	gsm_f.format = ast_format_gsm;
	if (ast_format_def_register(&gsm_f))
		return AST_MODULE_LOAD_FAILURE;
	return AST_MODULE_LOAD_SUCCESS;
}
static int load_module(void)
{
	ast_format_set(&g719_f.format, AST_FORMAT_G719, 0);
	if (ast_format_def_register(&g719_f))
		return AST_MODULE_LOAD_DECLINE;
	return AST_MODULE_LOAD_SUCCESS;
}
Beispiel #5
0
static int load_module(void)
{
	ilbc_f.format = ast_format_ilbc;
	if (ast_format_def_register(&ilbc_f))
		return AST_MODULE_LOAD_DECLINE;
	return AST_MODULE_LOAD_SUCCESS;
}
Beispiel #6
0
static int load_module(void)
{
	siren14_f.format = ast_format_siren14;
	if (ast_format_def_register(&siren14_f))
		return AST_MODULE_LOAD_DECLINE;

	return AST_MODULE_LOAD_SUCCESS;
}
Beispiel #7
0
static int load_module(void)
{
	g723_1_f.format = ast_format_g723;

	if (ast_format_def_register(&g723_1_f))
		return AST_MODULE_LOAD_DECLINE;
	return AST_MODULE_LOAD_SUCCESS;
}
static int load_module(void)
{
	int i;

	/* XXX better init ? */
	for (i = 0; i < ARRAY_LEN(ulaw_silence); i++)
		ulaw_silence[i] = AST_LIN2MU(0);
	for (i = 0; i < ARRAY_LEN(alaw_silence); i++)
		alaw_silence[i] = AST_LIN2A(0);

	ast_format_set(&pcm_f.format, AST_FORMAT_ULAW, 0);
	ast_format_set(&alaw_f.format, AST_FORMAT_ALAW, 0);
	ast_format_set(&au_f.format, AST_FORMAT_ULAW, 0);
	ast_format_set(&g722_f.format, AST_FORMAT_G722, 0);
	if ( ast_format_def_register(&pcm_f)
		|| ast_format_def_register(&alaw_f)
		|| ast_format_def_register(&au_f)
		|| ast_format_def_register(&g722_f) )
		return AST_MODULE_LOAD_FAILURE;
	return AST_MODULE_LOAD_SUCCESS;
}
Beispiel #9
0
static int load_module(void)
{
	int i;

	for (i = 0; f[i].desc_size ; i++) {
		f[i].format = ast_format_g726;
		if (ast_format_def_register(&f[i])) {	/* errors are fatal */
			ast_log(LOG_WARNING, "Failed to register format %s.\n", f[i].name);
			return AST_MODULE_LOAD_FAILURE;
		}
	}
	return AST_MODULE_LOAD_SUCCESS;
}
Beispiel #10
0
static int load_module(void)
{
	int i;
	ast_format_set(&slin_f.format, AST_FORMAT_SLINEAR, 0);
	ast_format_set(&slin12_f.format, AST_FORMAT_SLINEAR12, 0);
	ast_format_set(&slin16_f.format, AST_FORMAT_SLINEAR16, 0);
	ast_format_set(&slin24_f.format, AST_FORMAT_SLINEAR24, 0);
	ast_format_set(&slin32_f.format, AST_FORMAT_SLINEAR32, 0);
	ast_format_set(&slin44_f.format, AST_FORMAT_SLINEAR44, 0);
	ast_format_set(&slin48_f.format, AST_FORMAT_SLINEAR48, 0);
	ast_format_set(&slin96_f.format, AST_FORMAT_SLINEAR96, 0);
	ast_format_set(&slin192_f.format, AST_FORMAT_SLINEAR192, 0);

	for (i = 0; i < ARRAY_LEN(slin_list); i++) {
		if (ast_format_def_register(slin_list[i])) {
			return AST_MODULE_LOAD_FAILURE;
		}
	}

	return AST_MODULE_LOAD_SUCCESS;
}
static int load_module(void)
{
	int i;

	slin_f.format = ast_format_slin;
	slin12_f.format = ast_format_slin12;
	slin16_f.format = ast_format_slin16;
	slin24_f.format = ast_format_slin24;
	slin32_f.format = ast_format_slin32;
	slin44_f.format = ast_format_slin44;
	slin48_f.format = ast_format_slin48;
	slin96_f.format = ast_format_slin96;
	slin192_f.format = ast_format_slin192;

	for (i = 0; i < ARRAY_LEN(slin_list); i++) {
		if (ast_format_def_register(slin_list[i])) {
			return AST_MODULE_LOAD_FAILURE;
		}
	}

	return AST_MODULE_LOAD_SUCCESS;
}
static int load_module(void)
{
	mp3_f.format = ast_format_slin;
	InitMP3Constants();
	return ast_format_def_register(&mp3_f);
}
Beispiel #13
0
static int load_module(void)
{
	ast_format_set(&mp3_f.format, AST_FORMAT_SLINEAR, 0);
	InitMP3Constants();
	return ast_format_def_register(&mp3_f);
}