[Freeswitch-svn] [commit] r2276 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Sat Aug 12 18:39:03 EDT 2006
Author: anthm
Date: Sat Aug 12 18:39:02 2006
New Revision: 2276
Modified:
freeswitch/trunk/src/switch_ivr.c
Log:
windows play file thing (please test mike)
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Sat Aug 12 18:39:02 2006
@@ -453,6 +453,7 @@
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE,
NULL, pool) == SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Raw Codec Activated\n");
+
write_frame.codec = &codec;
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Raw Codec Activation Failed %s@%uhz %u channels %dms\n",
@@ -492,7 +493,7 @@
int do_speed = 1;
int last_speed = -1;
switch_event_t *event;
-
+
if (input_callback || buf) {
/*
dtmf handler function you can hook up to be executed when a digit is dialed during playback
@@ -590,10 +591,12 @@
write_frame.datalen = (uint32_t)(olen * 2);
write_frame.samples = (uint32_t)olen;
+
+#ifndef WIN32
#if __BYTE_ORDER == __BIG_ENDIAN
switch_swap_linear(write_frame.data, (int) write_frame.datalen / 2);
#endif
-
+#endif
for (stream_id = 0; stream_id < switch_core_session_get_stream_count(session); stream_id++) {
status = switch_core_session_write_frame(session, &write_frame, -1, stream_id);
More information about the Freeswitch-svn
mailing list