Changeset 2637 for trunk/src/dsound/os2helper.cpp
- Timestamp:
- Feb 4, 2000, 8:29:17 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dsound/os2helper.cpp
r1744 r2637 3 3 #include <os2wrap.h> 4 4 #include <misc.h> 5 #include "asmutil.h" 5 6 6 7 typedef ULONG DWORD ; 7 8 8 #if 09 #if 1 9 10 DWORD GetTickCountOS2() 10 11 { … … 22 23 QWORD qwTickCount; 23 24 ULONG ulFreq; 24 DWORD dwTick;25 ULONG ulTicks; 25 26 APIRET rc; 26 27 27 28 rc = DosTmrQueryFreq( &ulFreq); 29 dprintf(("DSOUND: GetTickCountOS2 Freq: %d(%08X)\n", 30 ulFreq, ulFreq)); 31 28 32 if(0==rc) 29 33 { 30 34 rc = DosTmrQueryTime(&qwTickCount); 31 if(0==rc) 32 { 33 ulFreq /=1000; 34 dwTick = qwTickCount.ulLo / ulFreq; 35 //dwTick = ( (qwTickCount.ulHi <<24)+ (qwTickCount.ulLo>>8)) / (ulFreq>>8); 36 } 35 dprintf(("DSOUND: GetTickCountOS2 Time %d(%08X) : %d(%08X)\n", 36 qwTickCount.ulHi, qwTickCount.ulHi, 37 qwTickCount.ulLo,qwTickCount.ulLo, ulTicks)); 38 ulTicks = GetMsCount(&qwTickCount,ulFreq); 39 dprintf(("DSOUND: GetTickCountOS2 ms Ticks %d\n")); 37 40 } 38 //dprintf(("DSOUND: GetTickCountOS2 Freq: %d(%08X) Time %d(%08X) : %d(%08X)\n", 39 // ulFreq, ulFreq, 40 // qwTickCount.ulHi, qwTickCount.ulHi, 41 // qwTickCount.ulLo,qwTickCount.ulLo)); 42 return 0==rc?dwTick:0x00FFDEAD; 41 return 0==rc?ulTicks:0x00FFDEAD; 43 42 } 44 43 #endif
Note:
See TracChangeset
for help on using the changeset viewer.