Page 1 of 1
Audio from a thing is going through walls too far.
Posted: Tue May 25, 2021 7:32 pm
by Hidden Hands
This is a problem I've been struggling with for a while. I have a radio that loops music in my map but it can be heard through walls. This isnt too bad normally, but in this particular map it can be heard on the floor below 2 rooms over due to it being on the other side of the sector.
Is there a suitable way to prevent this or at the very least, lower its radius?
Thanks in advance.
Re: Audio from a thing is going through walls too far.
Posted: Tue May 25, 2021 7:44 pm
by SanyaWaffles
Raise the attenuation. There's ways of doing this in SNDINFO or in A_StartSound calls. The higher the number, the smaller the radius.
Re: Audio from a thing is going through walls too far.
Posted: Tue May 25, 2021 8:04 pm
by Hidden Hands
Is there an example using SNDINFO anywhere I can take a look at please?
Re: Audio from a thing is going through walls too far.
Posted: Tue May 25, 2021 8:12 pm
by SanyaWaffles
The higher the value, the shorter the attenuation. 0.5 would make it much louder, 1.5 might make it too quiet. Experiment around a bit.
There's also the attenuation parameter in A_StartSound, which does the exact same thing except it can override it I think.
Re: Audio from a thing is going through walls too far.
Posted: Wed May 26, 2021 1:05 pm
by Hidden Hands
Nice one, thank you. This is exactly what I needed.