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:
authorJörg Müller <nexyon@gmail.com>2014-03-04 02:57:59 +0400
committerJörg Müller <nexyon@gmail.com>2015-07-28 15:01:52 +0300
commit96dd213e7ecabeffc682aee40b4102296ab062de (patch)
treeab07e2786bcd81b137c40f8ce2084ccec62075e6 /source/gameengine/GamePlayer
parentd3acfa1d87ccc7932b61311b7084951dcce67eba (diff)
Audaspace: preparing to use standalone library.
- Renamed some functions. - Using C API instead of C++ in the game engine, as the standalone is C++11.
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_Application.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
index b8ce67743de..f06a153431e 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_Application.cpp
@@ -101,8 +101,6 @@ extern "C"
#ifdef WITH_AUDASPACE
# include "AUD_C-API.h"
-# include "AUD_I3DDevice.h"
-# include "AUD_IDevice.h"
#endif
static void frameTimerProc(GHOST_ITimerTask* task, GHOST_TUns64 time);
@@ -746,13 +744,9 @@ bool GPG_Application::startEngine(void)
m_ketsjiengine->InitDome(m_startScene->gm.dome.res, m_startScene->gm.dome.mode, m_startScene->gm.dome.angle, m_startScene->gm.dome.resbuf, m_startScene->gm.dome.tilt, m_startScene->gm.dome.warptext);
// initialize 3D Audio Settings
- AUD_I3DDevice* dev = AUD_get3DDevice();
- if (dev)
- {
- dev->setSpeedOfSound(m_startScene->audio.speed_of_sound);
- dev->setDopplerFactor(m_startScene->audio.doppler_factor);
- dev->setDistanceModel(AUD_DistanceModel(m_startScene->audio.distance_model));
- }
+ AUD_setSpeedOfSound(m_startScene->audio.speed_of_sound);
+ AUD_setDopplerFactor(m_startScene->audio.doppler_factor);
+ AUD_setDistanceModel(AUD_DistanceModel(m_startScene->audio.distance_model));
#ifdef WITH_PYTHON
// Set the GameLogic.globalDict from marshal'd data, so we can