[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25187] trunk/blender/source/blender/ editors/interface/resources.c: Sound system should only default to OpenAL if it is built ( SDL if built otherwise).

Martin Poirier theeth at yahoo.com
Mon Dec 7 21:38:10 CET 2009


Revision: 25187
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25187
Author:   theeth
Date:     2009-12-07 21:38:09 +0100 (Mon, 07 Dec 2009)

Log Message:
-----------
Sound system should only default to OpenAL if it is built (SDL if built otherwise).

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/resources.c

Modified: trunk/blender/source/blender/editors/interface/resources.c
===================================================================
--- trunk/blender/source/blender/editors/interface/resources.c	2009-12-07 20:03:49 UTC (rev 25186)
+++ trunk/blender/source/blender/editors/interface/resources.c	2009-12-07 20:38:09 UTC (rev 25187)
@@ -1252,8 +1252,14 @@
 		/* new audio system */
 		if(U.audiochannels == 0)
 			U.audiochannels = 2;
-		if(U.audiodevice == 0)
+		if(U.audiodevice == 0) {
+#ifdef WITH_OPENAL
 			U.audiodevice = 2;
+#endif
+#ifdef WITH_SDL
+			U.audiodevice = 1;
+#endif
+		}
 		if(U.audioformat == 0)
 			U.audioformat = 0x24;
 		if(U.audiorate == 0)





More information about the Bf-blender-cvs mailing list