We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 28 - WinCE timer patch
Summary: WinCE timer patch
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: timer (show other bugs)
Version: 1.2.9
Hardware: Other Windows (CE)/PocketPC
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on: 47
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-03 12:30 UTC by Ryan C. Gordon
Modified: 2006-01-27 11:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan C. Gordon 2006-01-03 12:30:10 UTC
From: Tyler Montbriand <tsm@accesscomm.ca>
To: sdl@libsdl.org
Date: Fri, 30 Sep 2005 02:24:50 -0600
Subject: [SDL] WinCE timers, continued

Here's a strange timer for Windows CE that doesn't ignore time across
suspends.  It uses GetSystemTime to keep the time continuous, and GetTicks to
get finer-grained readings than 1 second.  It detects the difference between
the GetTicks time and GetSystemTime time on power-on to keep the error within
one second max.

It's not a patch on the current win32 timer code -- took one look at that and
figured it had more than enough #ifdefs already.  It's windows-ce specific.

Another thing I've noticed is that the Windows CE 4.0 and newer API has
functions warn processes about suspends.  This is something SDL REALLY needs
for audio in particular, because turning it off while it's playing causes
anything that uses audio to hardlock the system on power-on.  Unfortunately I
don't have 4.0 to play with.  :(
Comment 1 Ryan C. Gordon 2006-01-03 12:30:51 UTC
It's in CVS, but needs updated project files.

--ryan.
Comment 2 Ryan C. Gordon 2006-01-19 03:05:07 UTC
Flagging timer patch bug as dependent on Bug #47, which has the updated project files this needs.

--ryan.

Comment 3 Ryan C. Gordon 2006-01-19 03:44:15 UTC
Updated project files are now in CVS, compliments of Bug #47, so I'm resolving this bug.

--ryan.

Comment 4 Ryan C. Gordon 2006-01-27 11:23:07 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.