Sound:
authorJoerg Mueller <nexyon@gmail.com>
Sun, 20 Sep 2009 18:35:14 +0000 (18:35 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Sun, 20 Sep 2009 18:35:14 +0000 (18:35 +0000)
* 3D listener now working in GE

source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
source/gameengine/BlenderRoutines/CMakeLists.txt
source/gameengine/BlenderRoutines/SConscript

index ae46f880711b649891cc53d95cc383d8f50436e1..1ede16f017e58f6a0817da58d132f1fa3b383e59 100644 (file)
@@ -89,6 +89,8 @@ extern "C" {
 #include "DNA_scene_types.h"
        /***/
 
+#include "AUD_C-API.h"
+
 //XXX #include "BSE_headerbuttons.h"
 #include "BKE_context.h"
 #include "../../blender/windowmanager/WM_types.h"
@@ -386,6 +388,11 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, int alw
                        if(blscene->gm.stereoflag == STEREO_DOME)
                                ketsjiengine->InitDome(blscene->gm.dome.res, blscene->gm.dome.mode, blscene->gm.dome.angle, blscene->gm.dome.resbuf, blscene->gm.dome.tilt, blscene->gm.dome.warptext);
 
+                       // initialize 3D Audio Settings
+                       AUD_set3DSetting(AUD_3DS_SPEED_OF_SOUND, blscene->audio.speed_of_sound);
+                       AUD_set3DSetting(AUD_3DS_DOPPLER_FACTOR, blscene->audio.doppler_factor);
+                       AUD_set3DSetting(AUD_3DS_DISTANCE_MODEL, blscene->audio.distance_model);
+
                        if (sceneconverter)
                        {
                                // convert and add scene
index ee15fd99ed5e99bff0986f28b3caa50287d7c315..ce85c1185b0ebdcfa4f1c9a429527253537920f9 100644 (file)
@@ -6,6 +6,7 @@ SET(INC
        ../../../source/kernel/gen_system
        ../../../intern/string
        ../../../intern/guardedalloc
+       ../../../intern/audaspace/intern
        ../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer 
        ../../../source/gameengine/Converter
        ../../../source/blender/imbuf
index ad6f9f23fcee84c5a711e3a662d744532a56432c..1e8ff3c48e8269cc08cf5418b75a0073cb10278b 100644 (file)
@@ -8,6 +8,7 @@ incs = '. #source/kernel/gen_system #intern/string #intern/guardedalloc'
 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer'
 incs += ' #source/gameengine/Converter #source/blender/imbuf'
 incs += ' #intern/ghost/include'
+incs += ' #intern/audaspace/intern'
 incs += ' #intern/moto/include #source/gameengine/Ketsji #source/blender/blenlib'
 incs += ' #source/blender/blenkernel #source/blender'
 incs += ' #source/blender/blenfont #source/blender/editors/include'