mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
window compilation fix
This commit is contained in:
parent
228231d914
commit
2678366555
1 changed files with 3 additions and 3 deletions
|
|
@ -40,9 +40,9 @@ PBD::microsecond_timer_init ()
|
|||
LARGE_INTEGER freq;
|
||||
if (!QueryPerformanceFrequency(&freq) || freq.QuadPart < 1) {
|
||||
info << X_("Failed to determine frequency of QPC\n") << endmsg;
|
||||
timer_rate_us = 0;
|
||||
timer_rate_usecs = 0;
|
||||
} else {
|
||||
timer_rate_us = 1000000.0 / freq.QuadPart;
|
||||
timer_rate_usecs = 1000000.0 / freq.QuadPart;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
@ -55,7 +55,7 @@ PBD::get_microseconds ()
|
|||
|
||||
if (timer_rate_usecs) {
|
||||
if (QueryPerformanceCounter (&time)) {
|
||||
return (microseconds_t) (time.QuadPart * timer_rate_us);
|
||||
return (microseconds_t) (time.QuadPart * timer_rate_usecs);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue