[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37110] trunk/blender/source/gameengine/ GamePlayer/ghost/GPG_ghost.cpp: Fix for [#27562] audaspace not playing files in blenderplayer
Joerg Mueller
nexyon at gmail.com
Fri Jun 3 01:25:39 CEST 2011
Revision: 37110
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37110
Author: nexyon
Date: 2011-06-02 23:25:38 +0000 (Thu, 02 Jun 2011)
Log Message:
-----------
Fix for [#27562] audaspace not playing files in blenderplayer
blenderplayer wasn't initialising ffmpeg
This might also fix [#27558] GE Sound works in Blender but not in runtimes
Modified Paths:
--------------
trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
Modified: trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
===================================================================
--- trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp 2011-06-02 23:10:05 UTC (rev 37109)
+++ trunk/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp 2011-06-02 23:25:38 UTC (rev 37110)
@@ -71,6 +71,7 @@
#include "BLO_runtime.h"
#include "IMB_imbuf.h"
#include "BKE_text.h"
+#include "BKE_sound.h"
int GHOST_HACK_getFirstFile(char buf[]);
@@ -449,6 +450,8 @@
U.audioformat = 0x24;
U.audiochannels = 2;
+ sound_init_once();
+
/* if running blenderplayer the last argument can't be parsed since it has to be the filename. */
isBlenderPlayer = !BLO_is_a_runtime(argv[0]);
if (isBlenderPlayer)
More information about the Bf-blender-cvs
mailing list