Add audio playback glitch stats for Windows
Glitches are detected by comparing the differences between the device clock's position and the performance counter value at which the position was recorded. If the performance counter has moved further than the device position has, then it's treated as a glitch. Initially, I tried detecting when the write position (based on the audio device's clock) moved more than a single buffer's duration ahead between two calls. This did not prove reliable on my machine, as the device clock stopped moving forward unless fed enough data. Bug: 864463 Change-Id: Idb1d6c732964b5c4ca30f98f3521f3dbefe3b937 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611919 Commit-Queue: Oskar Sundbom <ossu@chromium.org> Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#659633}
Showing
Please register or sign in to comment