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}
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user