doxygen fixes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@793 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c75e333cd3
commit
781107bcc6
|
@ -245,7 +245,7 @@ SWITCH_DECLARE(const switch_state_handler_table *) switch_channel_get_state_hand
|
||||||
/*!
|
/*!
|
||||||
\brief Set private data on channel
|
\brief Set private data on channel
|
||||||
\param channel channel on which to set data
|
\param channel channel on which to set data
|
||||||
\param private void pointer to private data
|
\param private_info void pointer to private data
|
||||||
\return SWITCH_STATUS_SUCCESS if data was set
|
\return SWITCH_STATUS_SUCCESS if data was set
|
||||||
*/
|
*/
|
||||||
SWITCH_DECLARE(switch_status) switch_channel_set_private(switch_channel *channel, void *private_info);
|
SWITCH_DECLARE(switch_status) switch_channel_set_private(switch_channel *channel, void *private_info);
|
||||||
|
|
|
@ -73,6 +73,8 @@ SWITCH_DECLARE(switch_status) switch_ivr_collect_digits_callback(switch_core_ses
|
||||||
\param maxdigits max number of digits to read
|
\param maxdigits max number of digits to read
|
||||||
\param terminators digits to end the collection
|
\param terminators digits to end the collection
|
||||||
\param terminator actual digit that caused the collection to end (if any)
|
\param terminator actual digit that caused the collection to end (if any)
|
||||||
|
\param timeout timeout in ms
|
||||||
|
\param poll_channel flag to specify if you want the function to poll the channel while running
|
||||||
\return SWITCH_STATUS_SUCCESS to keep the collection moving.
|
\return SWITCH_STATUS_SUCCESS to keep the collection moving.
|
||||||
*/
|
*/
|
||||||
SWITCH_DECLARE(switch_status) switch_ivr_collect_digits_count(switch_core_session *session,
|
SWITCH_DECLARE(switch_status) switch_ivr_collect_digits_count(switch_core_session *session,
|
||||||
|
@ -87,7 +89,7 @@ SWITCH_DECLARE(switch_status) switch_ivr_collect_digits_count(switch_core_sessio
|
||||||
/*!
|
/*!
|
||||||
\brief play a file from the disk to the session
|
\brief play a file from the disk to the session
|
||||||
\param session the session to play the file too
|
\param session the session to play the file too
|
||||||
\param pointer to file handle to use (NULL for builtin one)
|
\param fh file handle to use (NULL for builtin one)
|
||||||
\param file the path to the file
|
\param file the path to the file
|
||||||
\param timer_name the name of a timer to use input will be absorbed (NULL to time off the session input).
|
\param timer_name the name of a timer to use input will be absorbed (NULL to time off the session input).
|
||||||
\param dtmf_callback code to execute if any dtmf is dialed during the playback
|
\param dtmf_callback code to execute if any dtmf is dialed during the playback
|
||||||
|
@ -109,6 +111,7 @@ SWITCH_DECLARE(switch_status) switch_ivr_play_file(switch_core_session *session,
|
||||||
/*!
|
/*!
|
||||||
\brief record a file from the session to a file
|
\brief record a file from the session to a file
|
||||||
\param session the session to record from
|
\param session the session to record from
|
||||||
|
\param fh file handle to use
|
||||||
\param file the path to the file
|
\param file the path to the file
|
||||||
\param dtmf_callback code to execute if any dtmf is dialed during the recording
|
\param dtmf_callback code to execute if any dtmf is dialed during the recording
|
||||||
\param buf an object to maintain across calls
|
\param buf an object to maintain across calls
|
||||||
|
@ -127,6 +130,7 @@ SWITCH_DECLARE(switch_status) switch_ivr_record_file(switch_core_session *sessio
|
||||||
/*!
|
/*!
|
||||||
\brief Speak given text with given tts engine
|
\brief Speak given text with given tts engine
|
||||||
\param session the session to speak on
|
\param session the session to speak on
|
||||||
|
\param tts_name the desired tts module
|
||||||
\param voice_name the desired voice
|
\param voice_name the desired voice
|
||||||
\param timer_name optional timer to use for async behaviour
|
\param timer_name optional timer to use for async behaviour
|
||||||
\param rate the sample rate
|
\param rate the sample rate
|
||||||
|
|
|
@ -36,8 +36,8 @@
|
||||||
static const char modname[] = "mod_ilbc";
|
static const char modname[] = "mod_ilbc";
|
||||||
|
|
||||||
struct ilbc_context {
|
struct ilbc_context {
|
||||||
ilbc encoder;
|
iLBC_Enc_Inst_t encoder;
|
||||||
ilbc decoder;
|
iLBC_Dec_Inst_t decoder;
|
||||||
};
|
};
|
||||||
|
|
||||||
static switch_status switch_ilbc_init(switch_codec *codec, switch_codec_flag flags,
|
static switch_status switch_ilbc_init(switch_codec *codec, switch_codec_flag flags,
|
||||||
|
@ -54,9 +54,9 @@ static switch_status switch_ilbc_init(switch_codec *codec, switch_codec_flag fla
|
||||||
} else {
|
} else {
|
||||||
context = switch_core_alloc(codec->memory_pool, sizeof(*context));
|
context = switch_core_alloc(codec->memory_pool, sizeof(*context));
|
||||||
if (encoding)
|
if (encoding)
|
||||||
context->encoder = ilbc_create();
|
initEncode(&context->encoder, 30);
|
||||||
if (decoding)
|
if (decoding)
|
||||||
context->decoder = ilbc_create();
|
initDecode(&context->decoder, 30, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
codec->private_info = context;
|
codec->private_info = context;
|
||||||
|
@ -66,16 +66,6 @@ static switch_status switch_ilbc_init(switch_codec *codec, switch_codec_flag fla
|
||||||
|
|
||||||
static switch_status switch_ilbc_destroy(switch_codec *codec)
|
static switch_status switch_ilbc_destroy(switch_codec *codec)
|
||||||
{
|
{
|
||||||
struct ilbc_context *context = codec->private_info;
|
|
||||||
|
|
||||||
int encoding = (codec->flags & SWITCH_CODEC_FLAG_ENCODE);
|
|
||||||
int decoding = (codec->flags & SWITCH_CODEC_FLAG_DECODE);
|
|
||||||
|
|
||||||
if (encoding)
|
|
||||||
ilbc_destroy(context->encoder);
|
|
||||||
if (decoding)
|
|
||||||
ilbc_destroy(context->decoder);
|
|
||||||
|
|
||||||
codec->private_info = NULL;
|
codec->private_info = NULL;
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -105,7 +95,7 @@ static switch_status switch_ilbc_encode(switch_codec *codec,
|
||||||
int x;
|
int x;
|
||||||
int loops = (int) decoded_data_len / 320;
|
int loops = (int) decoded_data_len / 320;
|
||||||
for (x = 0; x < loops && new_len < *encoded_data_len; x++) {
|
for (x = 0; x < loops && new_len < *encoded_data_len; x++) {
|
||||||
ilbc_encode(context->encoder, ddp, edp);
|
iLBC_encode(context->encoder, ddp, edp);
|
||||||
edp += 33;
|
edp += 33;
|
||||||
ddp += 160;
|
ddp += 160;
|
||||||
new_len += 33;
|
new_len += 33;
|
||||||
|
@ -146,7 +136,7 @@ static switch_status switch_ilbc_decode(switch_codec *codec,
|
||||||
unsigned int new_len = 0;
|
unsigned int new_len = 0;
|
||||||
|
|
||||||
for (x = 0; x < loops && new_len < *decoded_data_len; x++) {
|
for (x = 0; x < loops && new_len < *decoded_data_len; x++) {
|
||||||
ilbc_decode(context->decoder, edp, ddp);
|
iLBC_decode(context->decoder, edp, ddp);
|
||||||
ddp += 160;
|
ddp += 160;
|
||||||
edp += 33;
|
edp += 33;
|
||||||
new_len += 320;
|
new_len += 320;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
ProjectType="Visual C++"
|
ProjectType="Visual C++"
|
||||||
Version="8.00"
|
Version="8.00"
|
||||||
Name="mod_ilbc"
|
Name="mod_ilbc"
|
||||||
ProjectGUID="{4926323F-4EA8-4B7D-A3D3-65488725988F}"
|
ProjectGUID="{D3EC0AFF-76FC-4210-A825-9A17410660A3}"
|
||||||
RootNamespace="mod_ilbc"
|
RootNamespace="mod_ilbc"
|
||||||
Keyword="Win32Proj"
|
Keyword="Win32Proj"
|
||||||
>
|
>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)..\..\..\..\libs\include";"$(InputDir)..\..\..\..\libs\codec\ilbc\inc""
|
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)..\..\..\..\libs\include";"$(InputDir)..\..\..\..\libs\codec\ilbc\src""
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
||||||
MinimalRebuild="true"
|
MinimalRebuild="true"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)..\..\..\..\libs\include";"$(InputDir)..\..\..\..\libs\codec\ilbc\inc""
|
AdditionalIncludeDirectories=""$(InputDir)..\..\..\include";"$(InputDir)..\..\..\..\libs\include";"$(InputDir)..\..\..\..\libs\codec\ilbc\src""
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MOD_EXPORTS"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
|
|
Loading…
Reference in New Issue