Author: sayer
Date: 2008-08-20 15:50:37 +0200 (Wed, 20 Aug 2008)
New Revision: 1066
Modified:
trunk/core/AmAudio.cpp
trunk/core/plug-in/Makefile.app_module
trunk/core/plug-in/Makefile.audio_module
Log:
fixed build problems and missing initialization with libsamplerate. patch by
Robert Szokovacs
Modified: trunk/core/AmAudio.cpp
===================================================================
--- trunk/core/AmAudio.cpp 2008-08-20 13:44:30 UTC (rev 1065)
+++ trunk/core/AmAudio.cpp 2008-08-20 13:50:37 UTC (rev 1066)
@@ -261,6 +261,10 @@
: fmt(_fmt),
max_rec_time(-1),
rec_time(0)
+#ifdef USE_LIBSAMPLERATE
+ , resample_state(NULL),
+ resample_buf_samples(0)
+#endif
{
}
Modified: trunk/core/plug-in/Makefile.app_module
===================================================================
--- trunk/core/plug-in/Makefile.app_module 2008-08-20 13:44:30 UTC (rev
1065)
+++ trunk/core/plug-in/Makefile.app_module 2008-08-20 13:50:37 UTC (rev
1066)
@@ -10,6 +10,11 @@
CPPFLAGS += $(module_cflags)
CXXFLAGS += $(module_cflags)
+ifdef USE_LIBSAMPLERATE
+CPPFLAGS += -DUSE_LIBSAMPLERATE
+LDFLAGS +=-lsamplerate
+endif
+
app_module_dir = $(COREPATH)/lib
lib_name = $(plug_in_name).so
Modified: trunk/core/plug-in/Makefile.audio_module
===================================================================
--- trunk/core/plug-in/Makefile.audio_module 2008-08-20 13:44:30 UTC (rev
1065)
+++ trunk/core/plug-in/Makefile.audio_module 2008-08-20 13:50:37 UTC (rev
1066)
@@ -5,6 +5,11 @@
CPPFLAGS += -I $(COREPATH) -I $(COREPATH)/amci
CFLAGS += -Wall $(module_cflags)
+ifdef USE_LIBSAMPLERATE
+CPPFLAGS += -DUSE_LIBSAMPLERATE
+LDFLAGS +=-lsamplerate
+endif
+
audio_mod_dir = $(COREPATH)/lib
lib_name = $(plug_in_name).so
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev