Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
so i have a 3d sound thats playing and if i dont set a min or a max distance it fades out as you walk away from it but it never completely goes quiet you can still hear it so i tried adjusting the min and max distance for the sound but it seems if i try to set either of them it breaks and the sound never fades out i just want the sound to not be heard at all if you are not near it. any ideas on what could be causing this? |
||||
|
The max distance is the distance after which the sound no longer decreases, it's still is hearable. You control basically everything using the min distance. See here: https://learn.microsoft.com/en-u... |
||||
|
ok so is it possible to make the sound be silent after a certain distance cause when adjusting the min it will get very quiet but is always still audible no matter what value min it is set to |
||||
|
You can use the ESEO_LINEAR_ROLLOFF for that |
||||
|
trying to do that irrklang::createIrrKlangDevice(irrklang::E_SOUND_OUTPUT_DRIVER::ESOD_AUTO_DETECT, irrklang::E_SOUND_ENGINE_OPTIONS::ESEO_LINEAR_ROLLOFF); causes a crash when calling any function it seems like the sound device is not being created even though i check and it doesnt give an error with if (!soundEngine->engine) { std::cout << "Error: Could not create sound engine\n"; } |
||||
|
ok that issue was about the mp3 plugin not working but ive tried ESEO_LINEAR_ROLLOFF with both wav and flac and both dont work for fading out completely |
||||
|
That's strange, it should work. Maybe your distances are not correct? |
|