Problem while playing the same sound with different Sound instances

Hello.

I use FmodForFoxes library to handle sounds in my game.

I made dialogue system similiar to Undertale one. Its key feature is playing the same sound every time new symbols appears on the screen. So the problem occurs when I load the same sound and play it right away. Some instances plays loudly, some quitely.

https://youtu.be/qkYZQ0LUKx0 – here is the video.

P.S. I tried stopping current instance and playing it from the start, but it started clicking annoying.

Thanks.

Hi,

Thank you for sharing the information and recording.

The issue seems to be caused by overlapping instances and voice stealing. When the same sound is played multiple times in rapid succession, FMOD might cut off previous instances before they fully decay, leading to varying loudness.

To prevent this, you could:

  1. Open FMOD Studio and select your sound event.
  2. Set Max Instances to 1.
  3. Set Stealing Behavior to None.

This ensures that only one instance plays at a time and prevents sudden volume differences.

I think you are on the right track, the clicking sounds are likely caused by abrupt stopping and restarting the sound.

To smooth out the sound, could you please try:

  1. Open FMOD Studio and select your sound event.
  2. Click on the “Volume” knob of your sound track.
  3. In the Modulation Tab, select AHDSR.
  4. Adjust the Release Time to at least 0.1s - 0.2s

This allows the sound to fade out naturally instead of cutting off abruptly.

Hope this helps, let me know if the issue persists.