diff options
author | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2014-03-06 16:28:11 -0300 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2014-03-06 17:21:34 -0300 |
commit | fe03981bbc20694fd6a4a61461727e02bf9192a8 (patch) | |
tree | 05d1ea8bba4dd3f50153a397ca9321b96db18d05 /bootstrap.py | |
parent | 1d096f9f1bbe2d8da8860003457d1161deb873f6 (diff) | |
download | mpv-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 'bootstrap.py')
0 files changed, 0 insertions, 0 deletions