• Ryan C. Gordon's avatar
    From: Tyler Montbriand <tsm@accesscomm.ca> · 374ad1d7
    Ryan C. Gordon authored
    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.  :(
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401183
    374ad1d7
Name
Last commit
Last update
docs Loading commit data...
include Loading commit data...
src Loading commit data...
test Loading commit data...
.cvsignore Loading commit data...
BUGS Loading commit data...
Borland.html Loading commit data...
Borland.zip Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
CWprojects.sea.bin Loading commit data...
EpocBuildFiles.zip Loading commit data...
INSTALL Loading commit data...
MPWmake.sea.bin Loading commit data...
Makefile.am Loading commit data...
Makefile.dc Loading commit data...
PBProjects.tar.gz Loading commit data...
README Loading commit data...
README-SDL.txt Loading commit data...
README.AmigaOS Loading commit data...
README.CVS Loading commit data...
README.DC Loading commit data...
README.Epoc Loading commit data...
README.MacOS Loading commit data...
README.MacOSX Loading commit data...
README.MiNT Loading commit data...
README.NanoX Loading commit data...
README.PicoGUI Loading commit data...
README.QNX Loading commit data...
README.Qtopia Loading commit data...
README.RISCOS Loading commit data...
README.WinCE Loading commit data...
SDL.qpg.in Loading commit data...
SDL.spec.in Loading commit data...
TODO Loading commit data...
VisualC.html Loading commit data...
VisualC.zip Loading commit data...
VisualCE.zip Loading commit data...
WhatsNew Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure.in Loading commit data...
docs.html Loading commit data...
ltmain.sh Loading commit data...
sdl-config.in Loading commit data...
sdl.m4 Loading commit data...
strip_fPIC.sh Loading commit data...