VLC playback mechanics
Posted: 21 Feb 2022 20:19
Hello,
I'm interested in how VLC plays data. From what I've read in the sources and Wiki my assumption is VLC uses kind of timer/clock or loop with sleep between frames. But what exactly drives playback?
For example, in C files regarding Windows I see call timeBeginPeriod(5) which means setting system timer interval to 5 ms. Can you please explain why? To have a timer to draw frames on each tick if needed? Or to change resolution of sleep during infinite loop which draws frames?
Thanks in advance
I'm interested in how VLC plays data. From what I've read in the sources and Wiki my assumption is VLC uses kind of timer/clock or loop with sleep between frames. But what exactly drives playback?
For example, in C files regarding Windows I see call timeBeginPeriod(5) which means setting system timer interval to 5 ms. Can you please explain why? To have a timer to draw frames on each tick if needed? Or to change resolution of sleep during infinite loop which draws frames?
Thanks in advance