2019-12-11, 13:18
And what I have forgotten:
In kodi Audio and Video are totally separate. VideoPlayer has different queues. Audio queue size and video queue size is _not_ of equal size. Means there can be 7 seconds in Video queue and 5 in Audio-Queue and so on. The playback samples are then synced to each other via above API. So, if you just measure "what goes" in and when it comes to display, you have a severe offset between video and audio.
In kodi Audio and Video are totally separate. VideoPlayer has different queues. Audio queue size and video queue size is _not_ of equal size. Means there can be 7 seconds in Video queue and 5 in Audio-Queue and so on. The playback samples are then synced to each other via above API. So, if you just measure "what goes" in and when it comes to display, you have a severe offset between video and audio.