summaryrefslogtreecommitdiffstats
path: root/common/common.h
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2014-03-06 16:28:11 -0300
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2014-03-06 17:21:34 -0300
commitfe03981bbc20694fd6a4a61461727e02bf9192a8 (patch)
tree05d1ea8bba4dd3f50153a397ca9321b96db18d05 /common/common.h
parent1d096f9f1bbe2d8da8860003457d1161deb873f6 (diff)
downloadmpv-fe03981bbc20694fd6a4a61461727e02bf9192a8.tar.bz2
mpv-fe03981bbc20694fd6a4a61461727e02bf9192a8.tar.xz
ao_wasapi: Slightly improve timer accuracy
Use QueryPerformanceCounter to improve the accuracy of IAudioClock::GetPosition. While this is mainly for "realtime correctness" (usually the delay is a single sample or less), there are cases where IAudioClock::GetPosition takes a long time to return from its call (though the documentation doesn't define what a "long time" is), so correcting its value might be important in case the documented possible delay happens.
Diffstat (limited to 'common/common.h')
0 files changed, 0 insertions, 0 deletions