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?
}
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