DescriptionCheck the mic volume only periodically on Mac.
Ask the OS for the mic volume every 1 second rather than with every 10
ms chunk. The previous behavior was consuming ~2% of the CPU load of
a voice engine call, and is now negligible.
This is consistent with the webrtc Windows Core Audio implementation,
as well as the Chromium Mac implementation:
https://code.google.com/p/chromium/codesearch#chromium/src/media/audio/agc_audio_stream.h
TEST=voe_cmd_test with AGC continues to work well on Mac.
Committed: https://crrev.com/ec80f03b3cd919614d82ba70837de87718e1c4a7
Cr-Commit-Position: refs/heads/master@{#11182}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 11 (5 generated)
|