From 96dd213e7ecabeffc682aee40b4102296ab062de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20M=C3=BCller?= Date: Mon, 3 Mar 2014 23:57:59 +0100 Subject: 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. --- source/gameengine/GamePlayer/ghost/GPG_Application.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'source/gameengine/GamePlayer') 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 -- cgit v1.2.3