Author: sayer
Date: 2008-08-20 16:00:40 +0200 (Wed, 20 Aug 2008)
New Revision: 1067
Modified:
branches/1.0.0/core/AmAudio.cpp
branches/1.0.0/core/plug-in/Makefile.app_module
branches/1.0.0/core/plug-in/Makefile.audio_module
Log:
fixed build problems and missing initialization with libsamplerate. patch by
Robert Szokovacs (backport from trunk)
Modified: branches/1.0.0/core/AmAudio.cpp
===================================================================
--- branches/1.0.0/core/AmAudio.cpp 2008-08-20 13:50:37 UTC (rev 1066)
+++ branches/1.0.0/core/AmAudio.cpp 2008-08-20 14:00:40 UTC (rev 1067)
@@ -263,6 +263,10 @@
: fmt(_fmt),
max_rec_time(-1),
rec_time(0)
+#ifdef USE_LIBSAMPLERATE
+ , resample_state(NULL),
+ resample_buf_samples(0)
+#endif
{
}
Modified: branches/1.0.0/core/plug-in/Makefile.app_module
===================================================================
--- branches/1.0.0/core/plug-in/Makefile.app_module 2008-08-20 13:50:37 UTC
(rev 1066)
+++ branches/1.0.0/core/plug-in/Makefile.app_module 2008-08-20 14:00:40 UTC
(rev 1067)
@@ -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: branches/1.0.0/core/plug-in/Makefile.audio_module
===================================================================
--- branches/1.0.0/core/plug-in/Makefile.audio_module 2008-08-20 13:50:37 UTC
(rev 1066)
+++ branches/1.0.0/core/plug-in/Makefile.audio_module 2008-08-20 14:00:40 UTC
(rev 1067)
@@ -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