[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22799] branches/blender2.5/blender/intern /audaspace/intern/AUD_C-API.cpp: Close the old audio device before and not after opening the new.

Joerg Mueller nexyon at gmail.com
Wed Aug 26 12:02:18 CEST 2009


Revision: 22799
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22799
Author:   nexyon
Date:     2009-08-26 12:02:17 +0200 (Wed, 26 Aug 2009)

Log Message:
-----------
Close the old audio device before and not after opening the new.

Modified Paths:
--------------
    branches/blender2.5/blender/intern/audaspace/intern/AUD_C-API.cpp

Modified: branches/blender2.5/blender/intern/audaspace/intern/AUD_C-API.cpp
===================================================================
--- branches/blender2.5/blender/intern/audaspace/intern/AUD_C-API.cpp	2009-08-26 08:09:29 UTC (rev 22798)
+++ branches/blender2.5/blender/intern/audaspace/intern/AUD_C-API.cpp	2009-08-26 10:02:17 UTC (rev 22799)
@@ -77,6 +77,9 @@
 #endif
 	AUD_IDevice* dev = NULL;
 
+	if(AUD_device)
+		AUD_exit();
+
 	try
 	{
 		switch(device)
@@ -107,9 +110,6 @@
 			return false;
 		}
 
-		if(AUD_device)
-			AUD_exit();
-
 		AUD_device = dev;
 		if(AUD_device->checkCapability(AUD_CAPS_3D_DEVICE))
 			AUD_3ddevice = dynamic_cast<AUD_I3DDevice*>(AUD_device);





More information about the Bf-blender-cvs mailing list