mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 04:36:42 +00:00
cleanup some warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@639 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
681d2823e6
commit
2bea53541b
@ -288,7 +288,7 @@ struct switch_speech_interface {
|
|||||||
switch_status (*speech_open)(switch_speech_handle *sh,
|
switch_status (*speech_open)(switch_speech_handle *sh,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
/*! function to close the speech interface */
|
/*! function to close the speech interface */
|
||||||
switch_status (*speech_close)(switch_speech_handle *);
|
switch_status (*speech_close)(switch_speech_handle *, unsigned int *flags);
|
||||||
/*! function to feed audio to the ASR*/
|
/*! function to feed audio to the ASR*/
|
||||||
switch_status (*speech_feed_asr)(switch_speech_handle *sh, void *data, unsigned int *len, int rate, unsigned int *flags);
|
switch_status (*speech_feed_asr)(switch_speech_handle *sh, void *data, unsigned int *len, int rate, unsigned int *flags);
|
||||||
/*! function to read text from the ASR*/
|
/*! function to read text from the ASR*/
|
||||||
|
@ -552,7 +552,7 @@ SWITCH_DECLARE(switch_status) switch_core_speech_read_tts(switch_speech_handle *
|
|||||||
|
|
||||||
SWITCH_DECLARE(switch_status) switch_core_speech_close(switch_speech_handle *sh, unsigned int *flags)
|
SWITCH_DECLARE(switch_status) switch_core_speech_close(switch_speech_handle *sh, unsigned int *flags)
|
||||||
{
|
{
|
||||||
return sh->speech_interface->speech_close(sh);
|
return sh->speech_interface->speech_close(sh, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(switch_status) switch_core_timer_init(switch_timer *timer, char *timer_name, int interval, int samples,
|
SWITCH_DECLARE(switch_status) switch_core_timer_init(switch_timer *timer, char *timer_name, int interval, int samples,
|
||||||
@ -630,11 +630,6 @@ static void *switch_core_service_thread(switch_thread *thread, void *obj)
|
|||||||
channel = switch_core_session_get_channel(session);
|
channel = switch_core_session_get_channel(session);
|
||||||
assert(channel != NULL);
|
assert(channel != NULL);
|
||||||
|
|
||||||
#ifdef WTF
|
|
||||||
data->running = 0;
|
|
||||||
return NULL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
while (data->running > 0) {
|
while (data->running > 0) {
|
||||||
switch (switch_core_session_read_frame(session, &read_frame, -1, stream_id)) {
|
switch (switch_core_session_read_frame(session, &read_frame, -1, stream_id)) {
|
||||||
case SWITCH_STATUS_SUCCESS:
|
case SWITCH_STATUS_SUCCESS:
|
||||||
|
@ -514,6 +514,9 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(switch_memory_pool
|
|||||||
for (x = 0; x < preflen; x++) {
|
for (x = 0; x < preflen; x++) {
|
||||||
if ((codec_interface = switch_loadable_module_get_codec_interface(prefs[x])) != 0 ) {
|
if ((codec_interface = switch_loadable_module_get_codec_interface(prefs[x])) != 0 ) {
|
||||||
array[i++] = codec_interface;
|
array[i++] = codec_interface;
|
||||||
|
if (i > arraylen) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user