How to change a sound's RollOffMode

1 Like

Not sure if it matters or not, but is the sound played on client or server?
I remember with the old system, if you played sounds on client it would be lacking certain things, such as a Doppler effect.

1 Like

Did you try anyway, to double or triple the distance and see if the sound fades as you expect? (or if it just cuts abruptly at the new distance)

1 Like

Server; some of the sounds don’t even interact with scripts at all. Like one sound that’s just looped

1 Like

Correct, but EmitterSize was replaced with RollOffMode, which is what they all use now.

1 Like

I was trying to draw your attention to the latter half of the message, where I showed a screenshot

1 Like

I’ll try this, but I really hope it isn’t the problem

1 Like

You’re not using volumetric sounds or sound zone parts are you?

1 Like

Just disabled Volumetric Audio and it didn’t resolve the issue, and no, none of the audios use zone part code

1 Like

Increased the RollOffMaxDistance to 6200 and the same thing happens

1 Like

Well, the bug occured with a pretty big size for me. When you tried replicating the problem, did you experience the cutoff?

1 Like

With your original Roll Off amount:
Inverse would just cut off after moving the camera not that far away.
InverseTapered seemed to “fix” the problem, but the Roll Off is much more agrresive due to the size, so it would cut off right when it would start fading.

Linear would slowly fade before cutting off.
LinearSquare fades out faster.

With a bigger Roll Off, the audio just remains the same for a long distance, so if you are saying that it cut off at a shorter distance, then no.


But also, show video of this happening, because its pretty hard trying to help with something that we dont really know whats going on.

2 Likes

Good point. I’ve now edited the original post to contain all the info relating to this problem.

1 Like

Strange, I get a smooth sound fade out with the same setting:

although, linearsquare seems to give a better effect in my opinion:

As stated, InverseTapered may be your best bet.
What I do to get rid of the ‘sudden’ decrease in sound is increase my RollOffMinDistance to about 1/4 of the Max distance (fine tune it for larger distances).

1 Like

Interesting—that’s exactly what I’m trying to achieve. My game was created 2021 so perhaps some sound-related setting is outdated. Earlier you mentioned that Volumetric Audio should be off. Are you referring to the property in SoundService?

To see if this is the problem I’ll test in a new baseplate like you did

Wow, making the baseplate like you did made me realize the problem didn’t occur universally.

Peering into the SoundService settings of the problematic game then revealed a little setting called RollOffScale was set to 0.1, when it should have been 1

So please @Sir_Highness, please do the honors. What should I do to resolve the issue?

Uh, set RollOffScale to 1? But, the documentation says this setting does not apply to Linear but its worth a try I guess.

Another thing I noticed when testing in that baseplate was that if I set the volume of the sound too high(like 10) I would get more of a ‘cutoff’ at the edge of the limit.

Oh wow you solved the problem thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.