Ignore:
Timestamp:
Mar 21, 2001, 1:33:22 PM (24 years ago)
Author:
sandervl
Message:

underrun changes (pause & restart properly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/winmm/time.cpp

    r2812 r5348  
    1 /* $Id: time.cpp,v 1.9 2000-02-17 14:09:32 sandervl Exp $ */
     1/* $Id: time.cpp,v 1.10 2001-03-21 12:33:22 sandervl Exp $ */
    22
    33/*
     
    223223              UINT,     arg2)
    224224{
     225  dprintf2(("timeGetSystemTime %x %d", arg1, arg2));
    225226  return O32_timeGetSystemTime(arg1, arg2);
    226227}
     
    241242DWORD WIN32API timeGetTime()
    242243{
    243   return O32_timeGetTime();
    244 }
    245 
     244 DWORD time;
     245#if 0
     246 LARGE_INTEGER lint;
     247 static LARGE_INTEGER freq;
     248 static BOOL fInit = FALSE;
     249
     250  if(fInit == FALSE) {
     251     QueryPerformanceFrequency(&freq);
     252     freq.LowPart /= 1000;
     253     fInit = TRUE;
     254  }
     255  QueryPerformanceCounter(&lint);
     256  time = lint.LowPart/freq.LowPart;
     257  dprintf2(("timeGetTime %x (%x:%x)", time, lint.LowPart, lint.HighPart));
     258#else
     259  //SvL: TODO: Inaccurate
     260  time = O32_timeGetTime();
     261  dprintf2(("timeGetTime %x", time));
     262#endif
     263  return time;
     264}
     265
Note: See TracChangeset for help on using the changeset viewer.