提交 2356e4d4 authored 作者: Anthony Minessale's avatar Anthony Minessale

make mod_sndfile less chatty on startup

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1060 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 de88d7e8
...@@ -249,6 +249,7 @@ static switch_status setup_formats(void) ...@@ -249,6 +249,7 @@ static switch_status setup_formats(void)
char *extras[] = { "r8", "r16", "r24", "r32", "gsm", NULL }; char *extras[] = { "r8", "r16", "r24", "r32", "gsm", NULL };
int exlen = (sizeof(extras) / sizeof(extras[0])); int exlen = (sizeof(extras) / sizeof(extras[0]));
buffer[0] = 0; buffer[0] = 0;
sf_command(NULL, SFC_GET_LIB_VERSION, buffer, sizeof(buffer)); sf_command(NULL, SFC_GET_LIB_VERSION, buffer, sizeof(buffer));
if (strlen(buffer) < 1) { if (strlen(buffer) < 1) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, "Line %d: could not retrieve lib version.\n", __LINE__); switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, "Line %d: could not retrieve lib version.\n", __LINE__);
...@@ -288,9 +289,11 @@ static switch_status setup_formats(void) ...@@ -288,9 +289,11 @@ static switch_status setup_formats(void)
sf_command(NULL, SFC_GET_FORMAT_SUBTYPE, &info, sizeof(info)); sf_command(NULL, SFC_GET_FORMAT_SUBTYPE, &info, sizeof(info));
format = (format & SF_FORMAT_TYPEMASK) | info.format; format = (format & SF_FORMAT_TYPEMASK) | info.format;
sfinfo.format = format; sfinfo.format = format;
/*
if (sf_format_check(&sfinfo)) { if (sf_format_check(&sfinfo)) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, " %s\n", info.name); switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, " %s\n", info.name);
} }
*/
} }
} }
...@@ -302,6 +305,7 @@ static switch_status setup_formats(void) ...@@ -302,6 +305,7 @@ static switch_status setup_formats(void)
switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN,
"================================================================================\n"); "================================================================================\n");
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论