Jump to content

Best way to handle ambient sounds?


DoomeDx

Recommended Posts

Hey all!

 

I am working on a map that relies highly on action and atmosphere. When working on atmosphere, sound is crucial! Now I already have the OGG files I want to use for the sounds (computers humming, steam pipes blowing etc) and I want to play them when players enter certain rooms.

 

What is the best way to do this? I currently use PlaySound and it works but I want the sounds to be location specific. As in, when I move further away from the source of the sound effect, I want the sound effect to become quieter. I use GzDoomBuilder.

 

I got a degree in programming so no need to go easy on me in terms of coding language.

Share this post


Link to post
1 minute ago, leodoom85 said:

If you want permanent and quieter sounds for the map, you should use the SNDINFO lump to define the sounds. Hope that this helps...

https://zdoom.org/wiki/SNDINFO

I know, that's what I did and the sounds are working fine. But the problem is that I want the sounds to be location specific. When you stand near a computer console, the beeps should become louder. Move away from the console and the sounds should become softer. Giving the illusion that you move further away from the sound source.

Edited by DoomeDx

Share this post


Link to post

Ah, then use the ambient sound thing in GZDB (14001 or 14065, if you already defined the sounds in SNDINFO) and put the minimum value for the distance (you have a minimum fading distance and a maximum fading distance). You can try and find the correct setting for it.

Share this post


Link to post

The Ambient_sound page on the ZDoom wiki lists all possible methods to use ambient sounds in ZDoom (well it's also possible to create actors that play sounds, like the Strife actor WaterDropOnFloor, but it's probably simpler to use a dedicated method).

 

 

Edited by Gez
typo

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...