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.
Audio from a thing is going through walls too far.
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
- SanyaWaffles
- Posts: 861
- Joined: Thu Apr 25, 2013 12:21 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11 for the Motorola Powerstack II
- Graphics Processor: nVidia with Vulkan support
- Location: The Corn Fields
- Contact:
Re: Audio from a thing is going through walls too far.
Raise the attenuation. There's ways of doing this in SNDINFO or in A_StartSound calls. The higher the number, the smaller the radius.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: Audio from a thing is going through walls too far.
Is there an example using SNDINFO anywhere I can take a look at please?
- SanyaWaffles
- Posts: 861
- Joined: Thu Apr 25, 2013 12:21 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11 for the Motorola Powerstack II
- Graphics Processor: nVidia with Vulkan support
- Location: The Corn Fields
- Contact:
Re: Audio from a thing is going through walls too far.
Code: Select all
$attenuation aliasname value
There's also the attenuation parameter in A_StartSound, which does the exact same thing except it can override it I think.
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: Audio from a thing is going through walls too far.
Nice one, thank you. This is exactly what I needed.