Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, First of all, I am new to irrklang and programming (we use c++), so it would be nice if you could use not too many technical Terms. :) We develop a small underwater Simulation with ogre3d and irrklang and I would like to give the fish a 3D Sound. Just a Little watercurrent or something like that. Problem is, that not every fish has a sound, to be honest, it seems that only one fish has it. To play the sound every fish has a Sound object which gets the position of the fish. The key function is: //update soundposition for every fish void Sound::updateFish(Ogre::Vector3 pFishPosition) { if (fishWhirl->isFinished()) { fishWhirl->setVolume(50); //just for testing reasons fishWhirl = soundEngine->play3D(fish, vec3df(pFishPosition.x, pFishPosition.y, pFishPosition.z), false, false, true); } } Has anyone an idea how to do this? Is it even possible to Play the sam3 Sound file simultanousely several times? |
||||
|
I honestly don't understand what your problem is. Could you maybe rephrase what you want to do and what you fail to do? |
||||
|
I have a couple of fish and I would like to give them 3D-Sounds. Problem: Only one fish Plays the Sound and all others are quiet. |
||||
|
Maybe your 'fishWhirl' variable is static? Otherwise, it should work. If you really call play3D() for each fish, it should work. |
|