Create-a-Game-Source icon indicating copy to clipboard operation
Create-a-Game-Source copied to clipboard

Music cross fade bug

Open umaqs opened this issue 8 years ago • 0 comments

Music cross fade bug has this little bug. How to reproduce:

  1. Play level from Menu scene and return back to menu.
  2. Change master volume from options menu.

As both resources are playing a clip and in cross fading coroutine, only volume is set to 0. Changing the volume would change it for both of sources and you can hear both of musics playing at same time.

How to Fix : Adding the following line at the end of "AnimateMusicCrossFade" method should fix it. musicSources [1 - activeMusicSourceIndex].Stop();

umaqs avatar May 18 '17 01:05 umaqs