Hearing indoor ambient sound from the other side of the map

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

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.
Post Reply
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

I don't really know what to do, I've tried changing the range of it to a very small range but from this image it looks like nothing changed. Testing it in game results in the same thing. My max heard distance is 5, distance multiplier 1, min fading distance is also 5, and my volume is 75%
User avatar
Enjay
 
 
Posts: 27099
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hearing indoor ambient sound from the other side of the map

Post by Enjay »

JtoTheB wrote: Fri Sep 05, 2025 1:35 pm My max heard distance is 5, distance multiplier 1, min fading distance is also 5, and my volume is 75%
Presumably you are using those values purely for testing - they are very small, but they do work.


The only thing that comes to mind is how you are allocating the ambient sound and what thing type you are using.

If you use a thing type 14065 and set the arguments to play the sound you want (the sound index value), it should work. If you use a thing number that is auto-generated from the ambient sound number, then UDB doesn't update the sound distance circles properly. (I have reported this and it is a bug.)

The other thing is just a check that you haven't defined your sound in SNDINFO as a surround sound rather than a point one?
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

Turns out i've been using Point instead of Surround, i'll test surround and give you an update
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

I dunno what the issue is, no matter what i do the circle is just fucking huge
User avatar
Enjay
 
 
Posts: 27099
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hearing indoor ambient sound from the other side of the map

Post by Enjay »

JtoTheB wrote: Fri Sep 05, 2025 1:54 pm Turns out i've been using Point instead of Surround, i'll test surround and give you an update
No, you were OK. Point is what it should be. Surround is played full volume everywhere on the map. I was checking to make sure that you weren't using SURROUND.

I don't know why yours isn't working though. As you can see, I entered the values you gave and it made the circles tiny.

What does your SNDINFO look like?
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

my SNDINFO looks like this.
User avatar
Enjay
 
 
Posts: 27099
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hearing indoor ambient sound from the other side of the map

Post by Enjay »

I can't see anything obviously wrong with your SNDINFO.
In fact, this is it on three different sound things with three different values:


Unless you are able to post a cut-down version of your mod that I could try (just a small map, the sound definition and file would do it), I'm afraid I'm out of ideas. Everything I've tried based on your information works as it is meant to. :?
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

Before I try sending you a cut down version of the wad, I'm gonna try sending you the actual audio file i'm using (on the off chance its actually the issue)
https://drive.google.com/file/d/10RyhFa ... sp=sharing
User avatar
Enjay
 
 
Posts: 27099
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hearing indoor ambient sound from the other side of the map

Post by Enjay »

It seems to be working for me.

I've put together this map. As you can see from the pic, there is a sound object playing your sound in each alcove. You pretty much have to be in the first alcove to hear the sound that is placed there. At the other end of the corridor, you can hear the final sound from much further away.



www.aspectsweb.co.uk/enjay//doom/TestStuff/comproom.pk3

Maybe if you load up my map in UDB, you'll spot something different versus your map.
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

I'll look and give you an update.
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

I have an interesting idea; what if i copy the custom ambientsound from your pk3, then paste it into my WAD?
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

Slight issue, I can't really load the map because it's a PK3.
User avatar
Enjay
 
 
Posts: 27099
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hearing indoor ambient sound from the other side of the map

Post by Enjay »

Take the map WAD out of the PK3 and load it in UDB. Remember, a PK3 is just a zip file. So, rename PK3 to ZIP and you can open it easily by double clicking it in Windows.
User avatar
JtoTheB
Posts: 45
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: Hearing indoor ambient sound from the other side of the map

Post by JtoTheB »

Tried copy-pasting it, and turns out it worked. Must've just been something wrong on my end.
User avatar
Enjay
 
 
Posts: 27099
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hearing indoor ambient sound from the other side of the map

Post by Enjay »

I'm glad you got it working. If I were you, I'd still try to figure out why in case you come across the problem again.
Post Reply

Return to “Mapping”