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:
Diffstat (limited to 'source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp')
-rw-r--r--source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
index 4d30bc51280..93ef1fa8c46 100644
--- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
+++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
@@ -79,6 +79,7 @@ extern "C" {
#include "BKE_ipo.h"
#include "BKE_main.h"
#include "BKE_context.h"
+ #include "BKE_sound.h"
/* avoid c++ conflict with 'new' */
#define new _new
@@ -504,9 +505,10 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
ketsjiengine->InitDome(scene->gm.dome.res, scene->gm.dome.mode, scene->gm.dome.angle, scene->gm.dome.resbuf, scene->gm.dome.tilt, scene->gm.dome.warptext);
// initialize 3D Audio Settings
- AUD_setSpeedOfSound(scene->audio.speed_of_sound);
- AUD_setDopplerFactor(scene->audio.doppler_factor);
- AUD_setDistanceModel(AUD_DistanceModel(scene->audio.distance_model));
+ AUD_Device* device = sound_get_device();
+ AUD_Device_setSpeedOfSound(device, scene->audio.speed_of_sound);
+ AUD_Device_setDopplerFactor(device, scene->audio.doppler_factor);
+ AUD_Device_setDistanceModel(device, AUD_DistanceModel(scene->audio.distance_model));
// from see blender.c:
// FIXME: this version patching should really be part of the file-reading code,
@@ -673,7 +675,7 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
}
// stop all remaining playing sounds
- AUD_stopAll();
+ AUD_Device_stopAll(sound_get_device());
} while (exitrequested == KX_EXIT_REQUEST_RESTART_GAME || exitrequested == KX_EXIT_REQUEST_START_OTHER_GAME);