[ekiga] Only compile in the SILENT audio devices in debug mode.



commit 031069d8eb06585b6a4cf4fd7c7557d50fcbc5a1
Author: Damien Sandras <dsandras seconix com>
Date:   Thu Oct 15 20:07:15 2009 +0200

    Only compile in the SILENT audio devices in debug mode.
    
    When debug mode is disabled, those devices are disabled.
    If packagers do their job correctly, only the pulse plugin will be
    compiled in, leading to only one device: the pulse device.
    In that case, the user does not have any choice to do.
    
    Everything is much simpler.

 lib/Makefile.am       |    2 +
 lib/engine/engine.cpp |    3 +-
 win32/Makefile        |  829 -------------------------------------------------
 3 files changed, 4 insertions(+), 830 deletions(-)
---
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 254ae8f..0232a1a 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -595,6 +595,7 @@ libekiga_la_SOURCES += \
 # Sources of the null audio input component
 ##
 
+if DEBUG
 libekiga_la_SOURCES += \
 	$(components_dir)/null-audioinput/audioinput-manager-null.h \
 	$(components_dir)/null-audioinput/audioinput-manager-null.cpp \
@@ -610,6 +611,7 @@ libekiga_la_SOURCES += \
 	$(components_dir)/null-audiooutput/audiooutput-manager-null.cpp \
 	$(components_dir)/null-audiooutput/audiooutput-main-null.h \
 	$(components_dir)/null-audiooutput/audiooutput-main-null.cpp
+endif
 
 ##
 # Sources of the hal dbus component
diff --git a/lib/engine/engine.cpp b/lib/engine/engine.cpp
index 2e74c3b..7c14310 100644
--- a/lib/engine/engine.cpp
+++ b/lib/engine/engine.cpp
@@ -177,9 +177,10 @@ engine_init (Ekiga::ServiceCorePtr service_core,
   libnotify_init (kickstart);
 #endif
 
+#if DEBUG
   audioinput_null_init (kickstart);
-
   audiooutput_null_init (kickstart);
+#endif
 
   videoinput_ptlib_init (kickstart);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]