andy

Sound fadeTo

Recommended Posts

Hi all,

I need something like fadeTo for sound, so the volume changes from 1.0 to 0.2.

I looked at babylon source and decided to use private var _soundGain.

introSound._soundGain.gain.setTargetAtTime(0.2, introSound._soundSource.context.currentTime + 1, 1);

It works. But is there a way to apply Babylon animations to sound volume?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.