Add rudimentary latency tracking for mmdevapi
commit92dde81296778ba9d8a58777c0de192f14e45387
authorChris Robinson <chris.kcat@gmail.com>
Sun, 4 Nov 2012 16:35:39 +0000 (4 08:35 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Sun, 4 Nov 2012 16:35:39 +0000 (4 08:35 -0800)
tree3f4f537966858024db34fc669c2dbeb0612ed8f0
parente2368eb960ba1a43f365103a69e03803b8171731
Add rudimentary latency tracking for mmdevapi

This won't be as granular as it could be, since it only updates when the wakeup
event trips (which may or may not happen more often than OpenAL's mix updates).
A more correct method would be to query GetCurrentPadding directly, but that
would require sending a message to the processing thread and waiting for a
reply, since we can't guarantee COM on the calling thread.
Alc/backends/mmdevapi.c