Page 1 of 1

irrklang 3d sound position

Posted: Sat Apr 21, 2012 6:33 pm
by TJBaldy
I've searched google and these forums without any good specific answer which was strange.

Anyway, I'm trying to add a water sound effect to a fountain I've got in my game but I'm having all sorts of trouble with it.

When I use;

Code: Select all

 
irrklang::vec3df position(5000,0,3500);
ISound* waterSound = engine->play3D("media/water.wav", position, true, false);
 
 if(waterSound)
                 {
                         waterSound->setMinDistance(30.f); //A Loud Sound?
                 }
 
It seems to play everwhere, even if I add a "maxdistance" too.

Without the "mindistance" altogether, the sound doesn't play at all.

So how do I play a sound which has a certain radius around an object?

Much appreciated for anyones help :)

Re: irrklang 3d sound position

Posted: Sat Apr 21, 2012 6:55 pm
by CuteAlien
Wrong forum - this is Irrlicht :-) (Irrlicht was started by the same person, but Irrlicht is an opensource 3d engine while irrKlang is a proprietary sound library). Try this forum: http://ambiera.com/forum.php?f=1

Re: irrklang 3d sound position

Posted: Sat Apr 21, 2012 7:02 pm
by TJBaldy
Woopsy. Thanks for the tip. Will try those forums now.