rancex
New Member
Posts: 18
Posts: 18
|
Post by rancex on Oct 19, 2023 12:17:58 GMT
Hello, I have been using the playlist for doing layered music with multiple instruments, but ran into some problems. I am sure that I played the playlists at the same time without delays, but during the game there will be some occasional desyncs between playlist that just got worse as game goes on. After some testing I found out the desyncs start to happen when crossfading between the songs in the playlist, but it could also happen when starting the scene. I tried putting them in the same sync group but that does nothing. Strangely enough in my barebones audio only test scene this does not happen, but during gameplay it does. I am not sure what's the correlation other than it being the framerate(it could get heavy sometimes it is not optimized yet) since like I said I triggered all the playlist in the same foreach. Any help would be appreciated! 
|
|
|
Post by DarkTonic Dev on Oct 19, 2023 13:06:30 GMT
Let's see your Playlist settings too.
I haven't heard of this problem before.
|
|
rancex
New Member
Posts: 18
Posts: 18
|
Post by rancex on Oct 19, 2023 13:13:09 GMT
This is the default setting for all my playlist they are all basically the same with only different clips. Also for the one that happens at scene start it is because I called the RestartPlaylist() on all controllers when changing BGM, which apparently does not play nice with the sync group. Fixed that one, but the crossfade problem remains.

|
|
|
Post by DarkTonic Dev on Oct 19, 2023 13:16:32 GMT
Looks like. You would need to send me an example Scene so I can debug. I'm really not sure how this is possible.
I can look into Restart Playlist if you like?
|
|
rancex
New Member
Posts: 18
Posts: 18
|
Post by rancex on Oct 19, 2023 13:29:56 GMT
Ah never mind about the restart playlist the problem resurfaces again after some testing after I removed it =(
the example scene might be difficult since it can only be reproduced in the our game main gameplay scene which might have some assets I can't show but I will see if I can repro it somewhere.
|
|
rancex
New Member
Posts: 18
Posts: 18
|
Post by rancex on Oct 19, 2023 15:04:07 GMT
Hmm is there a way to manually trigger the controllers to sync? I would like to try that and see if the audio will sound weird or not.
|
|
rancex
New Member
Posts: 18
Posts: 18
|
Post by rancex on Oct 19, 2023 16:24:46 GMT
I think I kinda found it.
In the playlist controller script, the FindOtherControllerInSameSyncGroup() function, the obj.CurrentSongIsPlaying will occasionally return false for all other controllers despite the song obviously being played. This does not occur to all controllers however which is what results in desyncs because some controllers sync and some don't, which get worse as time passes.
I do not know why it returns false however, is it something to do with crossfading? Because if I set the crossfade time to 0 it seems okay? But that would defeat the purpose of using it in the first place as a layered music... My crossfade time is 1 if it makes a difference
|
|
rancex
New Member
Posts: 18
Posts: 18
|
Post by rancex on Oct 19, 2023 16:47:01 GMT
Okay last one before my shift ends haha I think it return false if the controller that is being asked is already syncing with other controller, like if controller B and C already find the first instance of controller A and is adjusting to it, then you call trigger clip on controller A, then controller A will return null. Although strangely this means since they are all synced to controller A it means they should all be the same...but I found out it is always the first controller instance that is always out of order. I will continue this tomorrow so I can't reply, but please write some thoughts you have on this, I will see it tomorrow, thanks! 
|
|
rancex
New Member
Posts: 18
Posts: 18
|
Post by rancex on Oct 20, 2023 8:09:56 GMT
Hmm just found out we have the old 2020 edition(the most recent version of that one), maybe this bug is fixed in 2022?
Oh I think I managed to make a simple scene to reproduce it, is there an email I can send it to?
|
|
|
Post by DarkTonic Dev on Oct 20, 2023 13:09:41 GMT
You can send to support@darktonic.com.
However, we do not offer bug fix support on the old version. There were a lot of fixes in the 2022 version. You should probably upgrade first and see if it's fixed.
|
|