Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Audio How do I fix this weird overlapping sound?

Discussion in 'Audio & Video' started by Marscaleb, Nov 1, 2023.

  1. Marscaleb


    Jan 7, 2014
    I have a scene with a couple waterfalls in it; it looks beautiful. I got a good looping sound effect for a waterfall, and I placed it over the waterfall; it works, it gets louder when I get closer to the waterfall, and quieter when I'm further away.

    Except that I actually got like three waterfalls in my scene. So when I approach one and I'm also getting a little closer to the others, they have this weird overlapping effect. It sounds kinda like listening through a long metal pipe. When I stand in the middle of all of them it sound particularly weird/horrible.

    I tried giving each waterfall a slightly different pitch, and this greatly helped, but I still hear some weirdness in certain spots.

    How do I fix this? How do I make them actually sound natural?
  2. JLF


    Feb 25, 2013
    If you haven’t tried it already, randomise the start position of each waterfall sound when you start it, so that they’re not playing in sync.

    You can do this with the AudioSource.time property, just set it to something different or ideally a random value between zero and the length of the clip.
    Marscaleb and KalUnity3D like this.
  3. KalUnity3D


    Unity Technologies

    Jul 17, 2020
    @Marscaleb to confirm, you're using the same looping sound for all three sources? If so then @JLF's response is spot on. Generally with audio, if you play the same sound at very similar times, you may experience comb filtering.
    SeventhString likes this.