[xiph-commits] r18118 - trunk/ao/src/plugins/pulse

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Sat Nov 19 12:02:52 PST 2011


Author: xiphmont
Date: 2011-11-19 12:02:52 -0800 (Sat, 19 Nov 2011)
New Revision: 18118

Modified:
   trunk/ao/src/plugins/pulse/ao_pulse.c
Log:
Fix FTBFS in Pulse driver if there is no PA_SAMPLE_S24NE
Patch provided by ph3-der-loewe
See Trac #1786 


Modified: trunk/ao/src/plugins/pulse/ao_pulse.c
===================================================================
--- trunk/ao/src/plugins/pulse/ao_pulse.c	2011-11-19 20:01:16 UTC (rev 18117)
+++ trunk/ao/src/plugins/pulse/ao_pulse.c	2011-11-19 20:02:52 UTC (rev 18118)
@@ -183,8 +183,10 @@
       ss.format = PA_SAMPLE_U8;
     else if (format->bits == 16)
       ss.format = PA_SAMPLE_S16NE;
+#ifdef PA_SAMPLE_S24NE
     else if (format->bits == 24)
       ss.format = PA_SAMPLE_S24NE;
+#endif
     else
         return 0;
 



More information about the commits mailing list