0

I'm writing an app to Play music on APP INVENTOR 2 by MIT. I have a Button to Control volume. Which when i Click must return to set value in Player's Volume. I can adjust the volume. but i can't get it to reduce gradually with time.

In example: An audio track is playing in volume 100% Then the Volume down button is pressed Volume of the audio track must be set to 25% but Gradually.. like within 5 seconds. (not suddenly)

Creating a smooth Volume Fade. Can anyone help?

Many thanks!

AACaN
  • 90
  • 2
  • 8
  • If you need something like volume fadeIn/fadeOut check [this solution](http://stackoverflow.com/questions/6884590/android-how-to-create-fade-in-fade-out-sound-effects-for-any-music-file-that-my/29246026#29246026). – pawegio Oct 13 '16 at 12:16
  • Hey, I can't implement code to App inventor? – AACaN Oct 13 '16 at 12:22
  • Probably you'll need to work on 'timer'. I don't think there is an exact solution for you but you can do it by using timer. – coskukoz Oct 17 '16 at 11:19

1 Answers1

0

Create a While loop to control the volume fade In and fade Out:

Screenshot

Json
  • 1,655
  • 1
  • 13
  • 21