fix endianess
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@743 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d29cd78976
commit
e8381199ef
|
@ -1,6 +1,6 @@
|
|||
ifeq ($(OSARCH),Darwin)
|
||||
CFLAGS += -I/Library/Frameworks/swift.framework/Versions/4/Headers
|
||||
LDFLAGS += -framework swift -lm
|
||||
CFLAGS += -L/Library/Frameworks/swift.framework/Versions/4 -I/Library/Frameworks/swift.framework/Versions/4/Headers
|
||||
LDFLAGS += -framework swift
|
||||
else
|
||||
LDFLAGS += -L/opt/swift/lib -lswift -lceplex_us -lceplang_en -lceplang_de -lceplang_es -lceplang_fr -lceplang_it -lm
|
||||
CFLAGS += -I/opt/swift/include
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
* mod_cepstral.c -- Cepstral Interface
|
||||
*
|
||||
*/
|
||||
#include <swift.h>
|
||||
#include <swift/swift.h>
|
||||
#include <switch.h>
|
||||
|
||||
static const char modname[] = "mod_cepstral";
|
||||
|
|
|
@ -637,9 +637,6 @@ SWITCH_DECLARE(switch_status) switch_ivr_speak_text(switch_core_session *session
|
|||
|
||||
write_frame.datalen = ilen;
|
||||
write_frame.samples = (int) ilen / 2;
|
||||
#ifdef SWAP_LINEAR
|
||||
switch_swap_linear(write_frame.data, (int) write_frame.datalen);
|
||||
#endif
|
||||
|
||||
for (stream_id = 0; stream_id < switch_core_session_get_stream_count(session); stream_id++) {
|
||||
if (switch_core_session_write_frame(session, &write_frame, -1, stream_id) != SWITCH_STATUS_SUCCESS) {
|
||||
|
|
Loading…
Reference in New Issue