From 4cb1b7546bd7657e051ef0b29f6b15960be7c03e Mon Sep 17 00:00:00 2001 From: henrika Date: Fri, 3 Feb 2017 03:39:47 -0800 Subject: [PATCH] Extends timer from 10 to 30 seconds for output volume check on Android. The timer is only used for logging purposes and we can save CPU by checking the volume less often. BUG=webrtc:7096 Review-Url: https://codereview.webrtc.org/2669323003 Cr-Commit-Position: refs/heads/master@{#16430} --- .../java/src/org/webrtc/voiceengine/WebRtcAudioManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java index ab17eece1a..d94839c829 100644 --- a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java +++ b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java @@ -83,11 +83,11 @@ public class WebRtcAudioManager { // Private utility class that periodically checks and logs the volume level // of the audio stream that is currently controlled by the volume control. - // A timer triggers logs once every 10 seconds and the timer's associated + // A timer triggers logs once every 30 seconds and the timer's associated // thread is named "WebRtcVolumeLevelLoggerThread". private static class VolumeLogger { private static final String THREAD_NAME = "WebRtcVolumeLevelLoggerThread"; - private static final int TIMER_PERIOD_IN_SECONDS = 10; + private static final int TIMER_PERIOD_IN_SECONDS = 30; private final AudioManager audioManager; private Timer timer;