[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22966] branches/blender2.5/blender/source /gameengine/GamePlayer: sound init/exit so at least the player opens

Campbell Barton ideasman42 at gmail.com
Thu Sep 3 09:12:41 CEST 2009


Revision: 22966
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22966
Author:   campbellbarton
Date:     2009-09-03 09:12:41 +0200 (Thu, 03 Sep 2009)

Log Message:
-----------
sound init/exit so at least the player opens

Modified Paths:
--------------
    branches/blender2.5/blender/source/gameengine/GamePlayer/common/GPC_Engine.cpp
    branches/blender2.5/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp

Modified: branches/blender2.5/blender/source/gameengine/GamePlayer/common/GPC_Engine.cpp
===================================================================
--- branches/blender2.5/blender/source/gameengine/GamePlayer/common/GPC_Engine.cpp	2009-09-03 06:34:03 UTC (rev 22965)
+++ branches/blender2.5/blender/source/gameengine/GamePlayer/common/GPC_Engine.cpp	2009-09-03 07:12:41 UTC (rev 22966)
@@ -343,8 +343,8 @@
 	{
 #if 0 //XXX - ADD SOUND
 		SND_DeviceManager::Unsubscribe();
+#endif
 		m_audiodevice = 0;
-#endif
 	}
 
 	m_initialized = false;

Modified: branches/blender2.5/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
===================================================================
--- branches/blender2.5/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp	2009-09-03 06:34:03 UTC (rev 22965)
+++ branches/blender2.5/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp	2009-09-03 07:12:41 UTC (rev 22966)
@@ -59,6 +59,7 @@
 #include "BKE_icons.h"	
 #include "BKE_node.h"	
 #include "BKE_report.h"	
+#include "BKE_sound.h"	
 #include "BLI_blenlib.h"
 #include "DNA_scene_types.h"
 #include "BLO_readfile.h"
@@ -358,6 +359,8 @@
 	quicktime_init();
 #endif
 
+	sound_init();
+
 	libtiff_init();
  
 	// Parse command line options
@@ -818,6 +821,8 @@
 	}
 
 	free_nodesystem();
+	
+	sound_exit();
 
 	return error ? -1 : 0;
 }





More information about the Bf-blender-cvs mailing list