I didn’t find solution to change background music from one track to another smoothly in correct loop.
Problem: I have 2 tracks with same leitmotiv and duration. Selected track plays in loop. In some cases I would like to change track 1 to track 2 and continue play in loop.
Issue: I use AudioComponent and its methods “FadeIn” (using StartTime parameter), “FadeOut” to change tracks and it works fine, but second track plays loop from StartTime parameter and it is not correct in my case. How can I change StartTime for loop, but still use specific time to fade in?
Note: I would use AudioComponent finished event, but audio system have a lag before event fired.