Unity Issue Tracker - AudioRandomContainer preview gets delayed for the second clip in the list
Closed
UUM-52749
AudioRandomContainer preview gets delayed for the second clip in the list
Unity: Audio Random Container
Won't Fix
2023.3.X
Cannot Reproduce
6.0.X
Reproduction steps are not consistent enough to reliably reproduce the issue.
The ARC preview sometimes plays the first clip followed by an arbitrary delay time, until it plays the rest of the clip and races to catch up with the scheduling. It only happens one time and seems to happen more frequently if I had Unity open for a long time or after I launched Unity for the first time.
Repro
Create an ARC asset with the following configurations:
2 or more clips
Trigger: Automatic
Playback Mode: Sequential
Automatic Trigger Mode: Offset
Time: 0.00 s
Plug and unplug headphones multiple times
Press preview
Expected: There preview playback works as normal
Actual: Sometimes there is a delay after the first clip
Note
The repro steps are an improvement from previous knowledge but they are still somewhat inconsistent
The delay can be short and hard to notice. But I think this current repro might hint at the underlying problem, which sometimes causes a noticeable large delay of more than a second. See the video ARC Delay Repro and the corresponding image with the same name. Notice that the third clip has started playing before the second clip finishes. This occurs due to the second clip being delayed
Prioritise and Follow this issue
Have a workaround or additional info about this issue?