[Qt-interest] QTimer on Windows in Unreliable for Small (16ms - 30ms) Delays
Martin Schröer
gordon at gordonswelt.de
Sun Sep 6 07:51:00 CEST 2009
Hey Josiah,
for tasks similar to yours (doing anything with a video clip sync'ed to
the clip)
i stopped relying to any timer, but started to sync up with the frame count
/ playback time instead.
So most of my video apps don't use timers directly, but instead use timed
(timer event) calls to a function that then checks the current frame /
pb time
of the clip and set some needed data according -and sync'ed- to the clip.
That way always worked well for me, not only since using Qt ;]
Using phonon, you would use Phonon::MediaObject::tick() and
Phonon::MediaObject::currentTime() to do so.
See the Qt Reference to learn about phonon.
Martin
More information about the Qt-interest-old
mailing list