[Freeswitch-svn] [commit] r11316 - freeswitch/trunk/src/mod/endpoints/mod_portaudio

FreeSWITCH SVN andrew at freeswitch.org
Tue Jan 20 11:50:54 PST 2009


Author: andrew
Date: Tue Jan 20 13:50:54 2009
New Revision: 11316

Log:
Don't use the portaudio dual_streams stuff on Solaris, it makes it break


Modified:
   freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	Tue Jan 20 13:50:54 2009
@@ -739,7 +739,12 @@
 
 	memset(&globals, 0, sizeof(globals));
 
+	/* dual streams makes portaudio on solaris choke */
+#if defined(sun) || defined(__sun)
+	globals.dual_streams = 0;
+#else
 	globals.dual_streams = 1;
+#endif
 
 	if ((status = load_config()) != SWITCH_STATUS_SUCCESS) {
 		return status;



More information about the Freeswitch-svn mailing list