Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
3d Sounds min and max distance not working

mrdringle
Registered User
Quote
2024-05-14 07:45:04

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?


niko
Moderator
Quote
2024-05-14 10:40:41

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...


mrdringle
Registered User
Quote
2024-05-14 17:16:36

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


erik
Registered User
Quote
2024-05-15 12:58:12

You can use the ESEO_LINEAR_ROLLOFF for that


mrdringle
Registered User
Quote
2024-05-16 09:25:07

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";
}


mrdringle
Registered User
Quote
2024-05-16 12:07:42

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


niko
Moderator
Quote
2024-05-17 09:27:02

That's strange, it should work. Maybe your distances are not correct?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact