Audio Service: Simpler SnooperNode correction FPS heuristic.

There was an oversight in the old logic's "aggressive" correction path:
During device switch-over periods, when timestamps were unstable, the
resampler was being reconfigured for each and every call to Render().
This might have been part (or all?) of the cause of higher-than-expected
CPU usage seen on some machines.

The new logic in this change, instead, reconfigures the resampler in
coaser-grained steps. The code to accomplish this is also simpler. From
testing (on my three desktops, various scenarios), synchronization seems
to generally converge much more quickly and is generally more stable.

Bug: 936835, 931225
Change-Id: I01a029bdcc37e4c92ff84a22dfaac674712cac3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1526798
Auto-Submit: Yuri Wiitala <miu@chromium.org>
Commit-Queue: Max Morin <maxmorin@chromium.org>
Reviewed-by: Max Morin <maxmorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#641648}
1 file changed