Sad
Hello,
as an Irrlicht beginner I make first expierence with this wonderful game engine, which impresses me more and more. Now I work on 3D sound in my project and want to set an alien_engine sound on a certain position in my level. Therefore I used the following code snippet:
------------------------------------------------------------------------
ISoundEngine* engine = createIrrKlangDevice();
if (!engine)
return 0;
audio::ISound* music = engine->play3D("./data/alien_engine.wav", core::vector3df(120,50,300),true,false,true);
if(music)
music->setMinDistance(5.0f);
music->setVolume(0.2f);
if(music)
music->drop();
--------------------------------------------------------------------------
Unfortunately I got only a 2D sound, meaning I hear the sound right after starting my level on any position with constant volume.
I work with Irrklang 04, because 05 gives always an error message and tried this in different variations. There is certainly something missing to get this effect, but I cannot find it. Is there anybody who can help me ? Thanks a lot for your support !!
RobbyRob
![Sad :(](./images/smilies/icon_sad.gif)