I am working on a project for a company for which we are using Master Audio. We are facing a small problem we can't seems to find a solution to.
We have music playlist setup and we are currently using the crossfade option. Each loop has a reverbtail of 4sec however the loop we have are exported to start at time 0:00. The crossfade option is not working as we don't want to fade in the upcoming track.
Fade out - Fade in option seems to be not exposed in master audio neither in code.
Is there any solution or workaround (coded or by UI) you can suggest me?
We just tried this solution but unfortunately it doesn't work for this specific situation. Basically the problem is that with the Sound Groups the fade out time does not trigger the following track before the current playing track has reached the final time.
An incredibly useful solution would be to implement the crossfade in the playlist maintaining the fadeout behavior (if crossfade is set at 4sec trigger next track 4sec before the natural ending time) but giving control over the adjustment of the fade in time of the next track. This could just be exposed in code which is unfortunately not the case at this specific moment. : )
If by any chance you have any other trick I could try it would be highly appreciated
Post by DarkTonic Dev on Oct 24, 2022 18:58:32 GMT
You're right, it starts the next song when the fade starts.
So go back to Playlists, and disable auto-advance. Set crossfade to your fade out time. Check "Fade Out Last Song" and "Fade In First Song" for the Playlist Controller. Now what you'll need to do is write code to play another song when each song ends. Do that by hooking into the "SongEnded" event in PlaylistController.