How can i increase / decrase audio volume?

Hello, I added a sound to my game that should increase in intensity as the character speeds up. Then I set it to loop and placed it inside the character. After that, I enabled auto play and it worked — the sound would play when the game started. Later, I tried to decrease and increase the volume using the Volume Multiplier, but it didn’t work. The Volume Multiplier value was changing, but there was no sound. Why could this be happening, and how can I properly decrease or increase the volume?

Can you show you script?

Can be many things in your logic causing volume to be zero while multiplier seems to be changing.

Try adjust volume like above pic with you attached audio.

I would not to confuse you with going into sound mixer and other volume channel controls however there is also mixers in unreal and if you setup one you can change per channel audio with ease, SFX Music, Ambient etc.

Sound not increasing or decrasing

ah wait my mistake

Adjust Volume Level : The new volume to set the Audio Component to.

So I am assuming that there is input or tick operation over there that you are trying to increase decrease volume.

Which is ok you can do that but let’s make sure that your values are right and you can do that with multiple ways which I will tell.

Try to get a bigger screen shot covering what is on the left.

It works, but I don’t want it to fade — I want the volume to increase or decrease gradually without any fade function. This code is in the update function, so it runs every frame. That’s why I don’t want to use fading to control the volume.

Sure If you don’t want fade

You can set “Adjust Volume Duration” to zero.

Also make sure that your sound cue, “Virtualize when Silent” so it always plays even its silent.

Actually, what I want to do is: as long as the character’s stamina is less than the value of minimum stamina + 20, I want to gradually increase the volume by 0.1. But if the stamina is greater than minimum stamina + 20 and sprint is not banned, then I want to gradually decrease the volume by 0.1.

( Sprint Handler function is in the Tick )

Alright, I did it! Thank you! i forgot set “Virtualize when Silent”

1 Like

My pleasure,

you can also stop basically firing volume command coming from tick like this. So it does prevents additional audio bugs.

1 Like