|
Post by Marco on Oct 15, 2022 10:05:48 GMT
Hello guys
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?
Thanks a lot for the help
-m-
|
|
|
Post by DarkTonic Dev on Oct 15, 2022 15:45:28 GMT
You may not need to use Playlists here. Sound Groups have Custom Fading section with fade in and fade out time per Variation. You could use a Looped Chain Sound Group to do auto-advance.
|
|
|
Post by Marco on Oct 23, 2022 9:32:35 GMT
Hello 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 thanks Marco
|
|
|
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.
|
|
|
Post by Marco on Oct 24, 2022 20:42:04 GMT
Thank you man
I'll try this tomorrow and let you know if it works.. : )
|
|
|
Post by DarkTonic Dev on Oct 24, 2022 23:59:37 GMT
No problem
|
|