Mercurial > almixer_isolated
diff ALmixer.c @ 63:8063b19bd40e
Attempt to fix GetTicks compile error on Windows (can't do math on a struct).
Taking the QuadPart of the struct. SDL seems to do something similar. Thanks to Johnson Lin reporting this issue!
Johnson Lin < arch . jslin - at - gmail . com >
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Tue, 19 Jun 2012 00:31:36 -0700 |
parents | e2687188aea5 |
children | be97ae4f30c0 |
line wrap: on
line diff
--- a/ALmixer.c Tue Jun 19 00:31:12 2012 -0700 +++ b/ALmixer.c Tue Jun 19 00:31:36 2012 -0700 @@ -307,7 +307,7 @@ if(TRUE == QueryPerformanceFrequency(&hi_res_ticks_per_second)) { QueryPerformanceCounter(&s_ticksBaseTime); - s_hiResSecondsPerTick = 1.0 / hi_res_ticks_per_second; + s_hiResSecondsPerTick = 1.0 / hi_res_ticks_per_second.QuadPart; } else {