Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2011-06-03 03:25:38 +0400
committerJoerg Mueller <nexyon@gmail.com>2011-06-03 03:25:38 +0400
commit60f5b51484a2ab748fccca85b01b1a45be760912 (patch)
treee41f195d3abc678a4ed589d7b10419f24f35451f /source/gameengine
parent45093f50bc6aebc56953ebc597b3ab3fa160a221 (diff)
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
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_ghost.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
index 7a98c7e09b0..121f38eef02 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
@@ -71,6 +71,7 @@ extern "C"
#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 @@ int main(int argc, char** argv)
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)