irrklang 3d sound position

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
TJBaldy
Posts: 16
Joined: Fri Dec 02, 2011 3:06 pm

irrklang 3d sound position

Post 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 :)
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: irrklang 3d sound position

Post 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
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
TJBaldy
Posts: 16
Joined: Fri Dec 02, 2011 3:06 pm

Re: irrklang 3d sound position

Post by TJBaldy »

Woopsy. Thanks for the tip. Will try those forums now.
Post Reply