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:
authorJoerg Mueller <nexyon@gmail.com>2011-08-07 15:54:58 +0400
committerJoerg Mueller <nexyon@gmail.com>2011-08-07 15:54:58 +0400
commit2d884fc035d403d43c7a18e3e61cd56ccdfbec2b (patch)
tree2548dcfbb52370618d1f255f57e65bcf1cbb49a4 /source/gameengine
parent4370099fb0bc1bdd21f78b14a91a1d8eb76e1bc1 (diff)
3D Audio GSoC:
* Pepper depends on ffmpeg 0.7.1 or higher now, windows and mac build systems set to ffmpeg-0.8 * Fixed orientation retrieval in OpenAL device code. * Added stopAll() method to AUD_IDevice (also for Python) and call it on BGE exit * Changed BGE to use audaspace via native C++ instead over the C API. * Made AUD_SequencerFactory and AUD_SequencerEntry thread safe. * Changed sound caching into a flag which fixes problems on file loading, especially with undo. * Removed unused parameter from sound_mute_scene_sound * Fixed bug: changing FPS didn't update the sequencer sound positions. * Fixed bug: Properties of sequencer strips weren't set correctly. * Minor warning fixes.
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp24
-rw-r--r--source/gameengine/Converter/KX_ConvertActuators.cpp4
-rw-r--r--source/gameengine/Ketsji/CMakeLists.txt1
-rw-r--r--source/gameengine/Ketsji/KX_KetsjiEngine.cpp21
-rw-r--r--source/gameengine/Ketsji/KX_SoundActuator.cpp182
-rw-r--r--source/gameengine/Ketsji/KX_SoundActuator.h9
-rw-r--r--source/gameengine/Ketsji/SConscript2
7 files changed, 125 insertions, 118 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
index a3ea85b605c..3c766affe56 100644
--- a/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
+++ b/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
@@ -95,10 +95,6 @@ extern float BKE_screen_view3d_zoom_to_fac(float camzoom);
#include "BKE_ipo.h"
/***/
-#ifdef WITH_AUDASPACE
-# include "AUD_C-API.h"
-#endif
-
//XXX #include "BSE_headerbuttons.h"
#include "BKE_context.h"
#include "../../blender/windowmanager/WM_types.h"
@@ -108,6 +104,11 @@ extern float BKE_screen_view3d_zoom_to_fac(float camzoom);
}
#endif
+#ifdef WITH_AUDASPACE
+# include "AUD_C-API.h"
+# include "AUD_I3DDevice.h"
+# include "AUD_IDevice.h"
+#endif
static BlendFileData *load_game_data(char *filename)
{
@@ -394,9 +395,13 @@ 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_I3DDevice* dev = AUD_get3DDevice();
+ if(dev)
+ {
+ dev->setSpeedOfSound(scene->audio.speed_of_sound);
+ dev->setDopplerFactor(scene->audio.doppler_factor);
+ dev->setDistanceModel(AUD_DistanceModel(scene->audio.distance_model));
+ }
// from see blender.c:
// FIXME: this version patching should really be part of the file-reading code,
@@ -581,7 +586,10 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
{
delete canvas;
canvas = NULL;
- }
+ }
+
+ // stop all remaining playing sounds
+ AUD_getDevice()->stopAll();
} while (exitrequested == KX_EXIT_REQUEST_RESTART_GAME || exitrequested == KX_EXIT_REQUEST_START_OTHER_GAME);
diff --git a/source/gameengine/Converter/KX_ConvertActuators.cpp b/source/gameengine/Converter/KX_ConvertActuators.cpp
index a06e16b2f1d..7b9cba7770b 100644
--- a/source/gameengine/Converter/KX_ConvertActuators.cpp
+++ b/source/gameengine/Converter/KX_ConvertActuators.cpp
@@ -388,7 +388,7 @@ void BL_ConvertActuators(char* maggiename,
{
bSound* sound = soundact->sound;
bool is3d = soundact->flag & ACT_SND_3D_SOUND ? true : false;
- AUD_Sound* snd_sound = NULL;
+ AUD_Reference<AUD_IFactory> snd_sound;
KX_3DSoundSettings settings;
settings.cone_inner_angle = soundact->sound3D.cone_inner_angle;
settings.cone_outer_angle = soundact->sound3D.cone_outer_angle;
@@ -406,7 +406,7 @@ void BL_ConvertActuators(char* maggiename,
"\" has no sound datablock." << std::endl;
}
else
- snd_sound = sound->playback_handle;
+ snd_sound = *reinterpret_cast<AUD_Reference<AUD_IFactory>*>(sound->playback_handle);
KX_SoundActuator* tmpsoundact =
new KX_SoundActuator(gameobj,
snd_sound,
diff --git a/source/gameengine/Ketsji/CMakeLists.txt b/source/gameengine/Ketsji/CMakeLists.txt
index f10347e5473..73365860fce 100644
--- a/source/gameengine/Ketsji/CMakeLists.txt
+++ b/source/gameengine/Ketsji/CMakeLists.txt
@@ -251,6 +251,7 @@ endif()
if(WITH_AUDASPACE)
list(APPEND INC
../../../intern/audaspace/intern
+ ../../../intern/audaspace/FX
)
add_definitions(-DWITH_AUDASPACE)
endif()
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
index 651450f01bf..421e642a6df 100644
--- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
+++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
@@ -70,6 +70,7 @@
#ifdef WITH_AUDASPACE
# include "AUD_C-API.h"
+# include "AUD_I3DDevice.h"
#endif
#include "NG_NetworkScene.h"
@@ -995,16 +996,20 @@ void KX_KetsjiEngine::DoSound(KX_Scene* scene)
if (!cam)
return;
- float f[4];
-
- cam->NodeGetWorldPosition().getValue(f);
- AUD_setListenerLocation(f);
+ AUD_I3DDevice* dev = AUD_get3DDevice();
+ if(dev)
+ {
+ AUD_Vector3 v;
+ AUD_Quaternion q;
+ cam->NodeGetWorldPosition().getValue(v.get());
+ dev->setListenerLocation(v);
- cam->GetLinearVelocity().getValue(f);
- AUD_setListenerVelocity(f);
+ cam->GetLinearVelocity().getValue(v.get());
+ dev->setListenerVelocity(v);
- cam->NodeGetWorldOrientation().getRotation().getValue(f);
- AUD_setListenerOrientation(f);
+ cam->NodeGetWorldOrientation().getRotation().getValue(q.get());
+ dev->setListenerOrientation(q);
+ }
}
diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp b/source/gameengine/Ketsji/KX_SoundActuator.cpp
index 0f2597c336f..eb1a13f672d 100644
--- a/source/gameengine/Ketsji/KX_SoundActuator.cpp
+++ b/source/gameengine/Ketsji/KX_SoundActuator.cpp
@@ -39,6 +39,9 @@
#ifdef WITH_AUDASPACE
# include "AUD_C-API.h"
+# include "AUD_PingPongFactory.h"
+# include "AUD_IDevice.h"
+# include "AUD_I3DHandle.h"
#endif
#include "KX_GameObject.h"
@@ -49,7 +52,7 @@
/* Native functions */
/* ------------------------------------------------------------------------- */
KX_SoundActuator::KX_SoundActuator(SCA_IObject* gameobj,
- AUD_Sound* sound,
+ AUD_Reference<AUD_IFactory> sound,
float volume,
float pitch,
bool is3d,
@@ -57,15 +60,11 @@ KX_SoundActuator::KX_SoundActuator(SCA_IObject* gameobj,
KX_SOUNDACT_TYPE type)//,
: SCA_IActuator(gameobj, KX_ACT_SOUND)
{
- if(sound)
- m_sound = AUD_copy(sound);
- else
- m_sound = NULL;
+ m_sound = sound;
m_volume = volume;
m_pitch = pitch;
m_is3d = is3d;
m_3d = settings;
- m_handle = NULL;
m_type = type;
m_isplaying = false;
}
@@ -74,27 +73,20 @@ KX_SoundActuator::KX_SoundActuator(SCA_IObject* gameobj,
KX_SoundActuator::~KX_SoundActuator()
{
- if(m_handle)
- AUD_stop(m_handle);
- if(m_sound)
- AUD_unload(m_sound);
+ if(!m_handle.isNull())
+ m_handle->stop();
}
void KX_SoundActuator::play()
{
- if(m_handle)
- {
- AUD_stop(m_handle);
- m_handle = NULL;
- }
+ if(!m_handle.isNull())
+ m_handle->stop();
- if(!m_sound)
+ if(m_sound.isNull())
return;
// this is the sound that will be played and not deleted afterwards
- AUD_Sound* sound = m_sound;
- // this sound is for temporary stacked sounds, will be deleted if not NULL
- AUD_Sound* sound2 = NULL;
+ AUD_Reference<AUD_IFactory> sound = m_sound;
bool loop = false;
@@ -102,7 +94,7 @@ void KX_SoundActuator::play()
{
case KX_SOUNDACT_LOOPBIDIRECTIONAL:
case KX_SOUNDACT_LOOPBIDIRECTIONAL_STOP:
- sound = sound2 = AUD_pingpongSound(sound);
+ sound = new AUD_PingPongFactory(sound);
// fall through
case KX_SOUNDACT_LOOPEND:
case KX_SOUNDACT_LOOPSTOP:
@@ -114,31 +106,27 @@ void KX_SoundActuator::play()
break;
}
- m_handle = AUD_play(sound, 0);
+ m_handle = AUD_getDevice()->play(sound, 0);
- if(sound2)
- AUD_unload(sound2);
+ AUD_Reference<AUD_I3DHandle> handle3d = AUD_Reference<AUD_I3DHandle>(m_handle);
- if(!m_handle)
- return;
-
- if(m_is3d)
+ if(m_is3d && !handle3d.isNull())
{
- AUD_setRelative(m_handle, false);
- AUD_setVolumeMaximum(m_handle, m_3d.max_gain);
- AUD_setVolumeMinimum(m_handle, m_3d.min_gain);
- AUD_setDistanceReference(m_handle, m_3d.reference_distance);
- AUD_setDistanceMaximum(m_handle, m_3d.max_distance);
- AUD_setAttenuation(m_handle, m_3d.rolloff_factor);
- AUD_setConeAngleInner(m_handle, m_3d.cone_inner_angle);
- AUD_setConeAngleOuter(m_handle, m_3d.cone_outer_angle);
- AUD_setConeVolumeOuter(m_handle, m_3d.cone_outer_gain);
+ handle3d->setRelative(false);
+ handle3d->setVolumeMaximum(m_3d.max_gain);
+ handle3d->setVolumeMinimum(m_3d.min_gain);
+ handle3d->setDistanceReference(m_3d.reference_distance);
+ handle3d->setDistanceMaximum(m_3d.max_distance);
+ handle3d->setAttenuation(m_3d.rolloff_factor);
+ handle3d->setConeAngleInner(m_3d.cone_inner_angle);
+ handle3d->setConeAngleOuter(m_3d.cone_outer_angle);
+ handle3d->setConeVolumeOuter(m_3d.cone_outer_gain);
}
if(loop)
- AUD_setLoop(m_handle, -1);
- AUD_setSoundPitch(m_handle, m_pitch);
- AUD_setSoundVolume(m_handle, m_volume);
+ m_handle->setLoopCount(-1);
+ m_handle->setPitch(m_pitch);
+ m_handle->setVolume(m_volume);
m_isplaying = true;
}
@@ -152,7 +140,7 @@ CValue* KX_SoundActuator::GetReplica()
void KX_SoundActuator::ProcessReplica()
{
SCA_IActuator::ProcessReplica();
- m_handle = 0;
+ m_handle = AUD_Reference<AUD_IHandle>();
}
bool KX_SoundActuator::Update(double curtime, bool frame)
@@ -167,11 +155,11 @@ bool KX_SoundActuator::Update(double curtime, bool frame)
RemoveAllEvents();
- if(!m_sound)
+ if(m_sound.isNull())
return false;
// actual audio device playing state
- bool isplaying = m_handle ? (AUD_getStatus(m_handle) == AUD_STATUS_PLAYING) : false;
+ bool isplaying = m_handle.isNull() ? false : (m_handle->getStatus() == AUD_STATUS_PLAYING);
if (bNegativeEvent)
{
@@ -185,9 +173,9 @@ bool KX_SoundActuator::Update(double curtime, bool frame)
case KX_SOUNDACT_LOOPBIDIRECTIONAL_STOP:
{
// stop immediately
- if(m_handle)
- AUD_stop(m_handle);
- m_handle = NULL;
+ if(!m_handle.isNull())
+ m_handle->stop();
+ m_handle = AUD_Reference<AUD_IHandle>();
break;
}
case KX_SOUNDACT_PLAYEND:
@@ -199,8 +187,8 @@ bool KX_SoundActuator::Update(double curtime, bool frame)
case KX_SOUNDACT_LOOPBIDIRECTIONAL:
{
// stop the looping so that the sound stops when it finished
- if(m_handle)
- AUD_setLoop(m_handle, 0);
+ if(!m_handle.isNull())
+ m_handle->setLoopCount(0);
break;
}
default:
@@ -226,21 +214,24 @@ bool KX_SoundActuator::Update(double curtime, bool frame)
play();
}
// verify that the sound is still playing
- isplaying = m_handle ? (AUD_getStatus(m_handle) == AUD_STATUS_PLAYING) : false;
+ isplaying = m_handle.isNull() ? false : (m_handle->getStatus() == AUD_STATUS_PLAYING);
if (isplaying)
{
- if(m_is3d)
+ AUD_Reference<AUD_I3DHandle> handle3d = AUD_Reference<AUD_I3DHandle>(m_handle);
+
+ if(m_is3d && !handle3d.isNull())
{
KX_GameObject* obj = (KX_GameObject*)this->GetParent();
- float f[4];
-
- obj->NodeGetWorldPosition().getValue(f);
- AUD_setSourceLocation(m_handle, f);
- obj->GetLinearVelocity().getValue(f);
- AUD_setSourceVelocity(m_handle, f);
- obj->NodeGetWorldOrientation().getRotation().getValue(f);
- AUD_setSourceOrientation(m_handle, f);
+ AUD_Vector3 v;
+ AUD_Quaternion q;
+
+ obj->NodeGetWorldPosition().getValue(v.get());
+ handle3d->setSourceLocation(v);
+ obj->GetLinearVelocity().getValue(v.get());
+ handle3d->setSourceVelocity(v);
+ obj->NodeGetWorldOrientation().getRotation().getValue(q.get());
+ handle3d->setSourceOrientation(q);
}
result = true;
}
@@ -252,7 +243,6 @@ bool KX_SoundActuator::Update(double curtime, bool frame)
return result;
}
-
#ifdef WITH_PYTHON
/* ------------------------------------------------------------------------- */
@@ -315,14 +305,14 @@ KX_PYMETHODDEF_DOC_NOARGS(KX_SoundActuator, startSound,
"startSound()\n"
"\tStarts the sound.\n")
{
- if(m_handle)
+ if(!m_handle.isNull())
{
- switch(AUD_getStatus(m_handle))
+ switch(m_handle->getStatus())
{
case AUD_STATUS_PLAYING:
break;
case AUD_STATUS_PAUSED:
- AUD_resume(m_handle);
+ m_handle->resume();
break;
default:
play();
@@ -335,8 +325,8 @@ KX_PYMETHODDEF_DOC_NOARGS(KX_SoundActuator, pauseSound,
"pauseSound()\n"
"\tPauses the sound.\n")
{
- if(m_handle)
- AUD_pause(m_handle);
+ if(!m_handle.isNull())
+ m_handle->pause();
Py_RETURN_NONE;
}
@@ -344,9 +334,9 @@ KX_PYMETHODDEF_DOC_NOARGS(KX_SoundActuator, stopSound,
"stopSound()\n"
"\tStops the sound.\n")
{
- if(m_handle)
- AUD_stop(m_handle);
- m_handle = NULL;
+ if(!m_handle.isNull())
+ m_handle->stop();
+ m_handle = AUD_Reference<AUD_IHandle>();
Py_RETURN_NONE;
}
@@ -394,8 +384,8 @@ PyObject* KX_SoundActuator::pyattr_get_audposition(void *self, const struct KX_P
KX_SoundActuator * actuator = static_cast<KX_SoundActuator *> (self);
float position = 0.0;
- if(actuator->m_handle)
- position = AUD_getPosition(actuator->m_handle);
+ if(!actuator->m_handle.isNull())
+ position = actuator->m_handle->getPosition();
PyObject* result = PyFloat_FromDouble(position);
@@ -425,8 +415,8 @@ PyObject* KX_SoundActuator::pyattr_get_pitch(void *self, const struct KX_PYATTRI
PyObject* KX_SoundActuator::pyattr_get_sound(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef)
{
KX_SoundActuator * actuator = static_cast<KX_SoundActuator *> (self);
- if(actuator->m_sound)
- return AUD_getPythonFactory(actuator->m_sound);
+ if(!actuator->m_sound.isNull())
+ return AUD_getPythonFactory(&actuator->m_sound);
else
Py_RETURN_NONE;
}
@@ -440,49 +430,50 @@ int KX_SoundActuator::pyattr_set_3d_property(void *self, const struct KX_PYATTRI
if (!PyArg_Parse(value, "f", &prop_value))
return PY_SET_ATTR_FAIL;
+ AUD_Reference<AUD_I3DHandle> handle3d = AUD_Reference<AUD_I3DHandle>(actuator->m_handle);
// if sound is working and 3D, set the new setting
if(!actuator->m_is3d)
return PY_SET_ATTR_FAIL;
if(!strcmp(prop, "volume_maximum")) {
actuator->m_3d.max_gain = prop_value;
- if(actuator->m_handle)
- AUD_setVolumeMaximum(actuator->m_handle, prop_value);
+ if(!handle3d.isNull())
+ handle3d->setVolumeMaximum(prop_value);
} else if (!strcmp(prop, "volume_minimum")) {
actuator->m_3d.min_gain = prop_value;
- if(actuator->m_handle)
- AUD_setVolumeMinimum(actuator->m_handle, prop_value);
+ if(!handle3d.isNull())
+ handle3d->setVolumeMinimum(prop_value);
} else if (!strcmp(prop, "distance_reference")) {
actuator->m_3d.reference_distance = prop_value;
- if(actuator->m_handle)
- AUD_setDistanceReference(actuator->m_handle, prop_value);
+ if(!handle3d.isNull())
+ handle3d->setDistanceReference(prop_value);
} else if (!strcmp(prop, "distance_maximum")) {
actuator->m_3d.max_distance = prop_value;
- if(actuator->m_handle)
- AUD_setDistanceMaximum(actuator->m_handle, prop_value);
+ if(!handle3d.isNull())
+ handle3d->setDistanceMaximum(prop_value);
} else if (!strcmp(prop, "attenuation")) {
actuator->m_3d.rolloff_factor = prop_value;
- if(actuator->m_handle)
- AUD_setAttenuation(actuator->m_handle, prop_value);
+ if(!handle3d.isNull())
+ handle3d->setAttenuation(prop_value);
} else if (!!strcmp(prop, "cone_angle_inner")) {
actuator->m_3d.cone_inner_angle = prop_value;
- if(actuator->m_handle)
- AUD_setConeAngleInner(actuator->m_handle, prop_value);
+ if(!handle3d.isNull())
+ handle3d->setConeAngleInner(prop_value);
} else if (!strcmp(prop, "cone_angle_outer")) {
actuator->m_3d.cone_outer_angle = prop_value;
- if(actuator->m_handle)
- AUD_setConeAngleOuter(actuator->m_handle, prop_value);
+ if(!handle3d.isNull())
+ handle3d->setConeAngleOuter(prop_value);
} else if (!strcmp(prop, "cone_volume_outer")) {
actuator->m_3d.cone_outer_gain = prop_value;
- if(actuator->m_handle)
- AUD_setConeVolumeOuter(actuator->m_handle, prop_value);
+ if(!handle3d.isNull())
+ handle3d->setConeVolumeOuter(prop_value);
} else {
return PY_SET_ATTR_FAIL;
@@ -499,8 +490,8 @@ int KX_SoundActuator::pyattr_set_audposition(void *self, const struct KX_PYATTRI
if (!PyArg_Parse(value, "f", &position))
return PY_SET_ATTR_FAIL;
- if(actuator->m_handle)
- AUD_seek(actuator->m_handle, position);
+ if(!actuator->m_handle.isNull())
+ actuator->m_handle->seek(position);
return PY_SET_ATTR_SUCCESS;
}
@@ -512,8 +503,8 @@ int KX_SoundActuator::pyattr_set_gain(void *self, const struct KX_PYATTRIBUTE_DE
return PY_SET_ATTR_FAIL;
actuator->m_volume = gain;
- if(actuator->m_handle)
- AUD_setSoundVolume(actuator->m_handle, gain);
+ if(!actuator->m_handle.isNull())
+ actuator->m_handle->setVolume(gain);
return PY_SET_ATTR_SUCCESS;
}
@@ -526,8 +517,8 @@ int KX_SoundActuator::pyattr_set_pitch(void *self, const struct KX_PYATTRIBUTE_D
return PY_SET_ATTR_FAIL;
actuator->m_pitch = pitch;
- if(actuator->m_handle)
- AUD_setSoundPitch(actuator->m_handle, pitch);
+ if(!actuator->m_handle.isNull())
+ actuator->m_handle->setPitch(pitch);
return PY_SET_ATTR_SUCCESS;
}
@@ -539,12 +530,11 @@ int KX_SoundActuator::pyattr_set_sound(void *self, const struct KX_PYATTRIBUTE_D
if (!PyArg_Parse(value, "O", &sound))
return PY_SET_ATTR_FAIL;
- AUD_Sound* snd = AUD_getPythonSound(sound);
+ AUD_Reference<AUD_IFactory>* snd = reinterpret_cast<AUD_Reference<AUD_IFactory>*>(AUD_getPythonSound(sound));
if(snd)
{
- if(actuator->m_sound)
- AUD_unload(actuator->m_sound);
- actuator->m_sound = snd;
+ actuator->m_sound = *snd;
+ delete snd;
return PY_SET_ATTR_SUCCESS;
}
diff --git a/source/gameengine/Ketsji/KX_SoundActuator.h b/source/gameengine/Ketsji/KX_SoundActuator.h
index 395064b66be..b1161e0cad2 100644
--- a/source/gameengine/Ketsji/KX_SoundActuator.h
+++ b/source/gameengine/Ketsji/KX_SoundActuator.h
@@ -38,6 +38,9 @@
#ifdef WITH_AUDASPACE
# include "AUD_C-API.h"
+# include "AUD_Reference.h"
+# include "AUD_IFactory.h"
+# include "AUD_IHandle.h"
#endif
#include "BKE_sound.h"
@@ -58,12 +61,12 @@ class KX_SoundActuator : public SCA_IActuator
{
Py_Header;
bool m_isplaying;
- AUD_Sound* m_sound;
+ AUD_Reference<AUD_IFactory> m_sound;
float m_volume;
float m_pitch;
bool m_is3d;
KX_3DSoundSettings m_3d;
- AUD_Handle* m_handle;
+ AUD_Reference<AUD_IHandle> m_handle;
void play();
@@ -84,7 +87,7 @@ public:
KX_SOUNDACT_TYPE m_type;
KX_SoundActuator(SCA_IObject* gameobj,
- AUD_Sound* sound,
+ AUD_Reference<AUD_IFactory> sound,
float volume,
float pitch,
bool is3d,
diff --git a/source/gameengine/Ketsji/SConscript b/source/gameengine/Ketsji/SConscript
index 4eb9ee8b3f0..c5509dd7de8 100644
--- a/source/gameengine/Ketsji/SConscript
+++ b/source/gameengine/Ketsji/SConscript
@@ -11,7 +11,7 @@ incs += ' #source/blender/python/mathutils' # Only for mathutils, be very carefu
incs += ' #intern/string #intern/guardedalloc #intern/container'
incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer'
-incs += ' #intern/audaspace/intern #source/gameengine/Converter'
+incs += ' #intern/audaspace/intern #intern/audaspace/FX #source/gameengine/Converter'
incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf #intern/moto/include'
incs += ' #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork #source/blender/blenlib #source/blender/blenfont'
incs += ' #source/blender/blenkernel #source/blender #source/blender/editors/include'