jrhee
New Member
Posts: 7
Posts: 7
|
Post by jrhee on Sept 30, 2014 2:23:16 GMT
Hi,
I have two sync'd playlists, one of which contains two tracks. I'd like the first track to play once, then advance to the second one which loops. Since the docs state that auto-advancing of sync'd playlists isn't allowed, is there a recommended way to achieve this?
Thanks!
|
|
|
Post by DarkTonic Dev on Sept 30, 2014 13:25:38 GMT
Not possible out of the box. You'll need to tell it to play a different song explicitly, either by using TriggerPlaylistClip or TriggerNextSong methods.
The reason it's not possible to use auto-advance on that mode is because the code that does synchronization is completely at odds with the crossfade code (even if you have cross fade time of zero). For example, the song is almost over (a song of 1 minute 2 seconds before the end with a crossfade of 2 seconds set up). So if we let auto-advance "work", it would now start cross-fading to the new song. The problem is that since the new song has to start at the same time (0:58) because it's synchronized, it will need to immediately crossfade again to the next song. That's obviously bogus, so we disable the usage of them together.
So if you absolutely need to auto-advance, you want to really make sure that you need to use Synchronize Clips song transition mode.
I would either:
1) Write a custom script to check the time and change songs later 2) Write a custom script to just wait a specified amount of time (CoRoutine) and play the next song. 3) Actually combine the song files into one so you don't have to worry about it.
|
|
jrhee
New Member
Posts: 7
Posts: 7
|
Post by jrhee on Sept 30, 2014 15:28:10 GMT
Ok thanks, I'll try out one of the first two options. Option 3 won't work since only the latter part of the track should loop.
|
|
|
Post by DarkTonic Dev on Sept 30, 2014 15:37:16 GMT
Ok. Theoretically, all clips in a synchronized playlist should loop, since you can't auto-advance. Then if you don't want a particular clip to loop, you do option 1 or 2.
|
|