Hello all, I’ve got a project where I’d like short clips to be played at regular intervals, much like music notes. As of now they can be triggered every N frames (12, 16, 24, 48), if they are active. The overall playback is reasonably solid, but there are slight onset/trigger inconsistencies which seem random.
I’ve set Application.targetFrameRate = 24, and there are 7 AudioSources, one for each sound. Originally I did everything with one AudioSource and swapped clips, using PlayOneShot, but I read that was inefficient. However, changing to the current setup made no difference in the onsets that I could tell. All sound clips are virtually identical: same length, same attack time, etc., just different pitches.
So, is there some way to optimize things so that the starting playback of different sounds is better synchronized? I’m using the frame as the timing marker, but should it be something else? Thanks!