GE Sound works in Blender but not in runtimes (similar to T27558)
Open, NormalPublic

Description

System Information
MacBook Pro
2.4 GHz Intel Core 2 Duo
4GB memory
Mac OSX 10.10.5

NVIDA GeForce 8600M GT 256MB

Blender Version
Broken: (example: 2.77a 22a2853, see splash screen)
Worked: (optional)

Sound works fine in Blender when pressing P (looped thunder sound) but not in exported executable where there is sound at all.

soundTest.zip

Exact steps for others to reproduce the error
Download and run executable

Details

Type
Bug

@Michael Carroll (mkec), It is always a good idea to give full descriptive titles and descriptions to the reports.

@Joerg Mueller (nexyon), do you mind having a look into this? Here's a patch which fixed issue in original report, so maybe it's something similar needed now:

1Index: source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
2===================================================================
3--- source/gameengine/GamePlayer/ghost/GPG_ghost.cpp (revision 37109)
4+++ source/gameengine/GamePlayer/ghost/GPG_ghost.cpp (revision 37110)
5@@ -71,6 +71,7 @@
6​ #include "BLO_runtime.h"
7​ #include "IMB_imbuf.h"
8​ #include "BKE_text.h"
9+#include "BKE_sound.h"
10
11​ int GHOST_HACK_getFirstFile(char buf[]);
12
13@@ -449,6 +450,8 @@
14​ U.audioformat = 0x24;
15​ U.audiochannels = 2;
16
17+ sound_init_once();
18+
19​ /* if running blenderplayer the last argument can't be parsed since it has to be the filename. */
20​ isBlenderPlayer = !BLO_is_a_runtime(argv[0]);
21​ if (isBlenderPlayer)

Sergey Sharybin (sergey) changed the title from "Seems like T27558 is back." to "GE Sound works in Blender but not in runtimes (similar to T27558)".Jun 28 2016, 8:50 AM
Sergey Sharybin (sergey) triaged this task as "Normal" priority.

Hmm, it works fine for me, but I'm on linux, not on a mac. Could someone with a mac try to reproduce this?

Sorry about the title, and thanks. I have never run a patch or even compiled blender but I am willing to try if someone can point me to instructions.

Is this still a problem with 2.78a?

Add Comment