How to fade out the volume of an audio?

How to fade out the volume of an audio?
0

#1

I play a lot of different audio files separately using audioEngine. I need to fade out the volume of one exact audio file.
Is there an easy way to do it?


#2

If you want to change one audio’s volume,first play the audio to cc.audioEngine.playEffect or cc.audioEngine.playMusic.
you can use cc.audioEngine.setEffectsVolume(value);
here you can use for statement or action to set value from 1 to 0;


#3

That will change the volume for all effects
I need to play one effect with different volume others with another volume