Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Side by Side Diff: webrtc/pc/currentspeakermonitor.cc

Issue 1919133002: Simple lint fixes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/pc/currentspeakermonitor.h ('k') | webrtc/pc/externalhmac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/pc/currentspeakermonitor.h" 11 #include "webrtc/pc/currentspeakermonitor.h"
12 12
13 #include <vector>
14
13 #include "webrtc/base/logging.h" 15 #include "webrtc/base/logging.h"
14 #include "webrtc/media/base/streamparams.h" 16 #include "webrtc/media/base/streamparams.h"
15 #include "webrtc/pc/audiomonitor.h" 17 #include "webrtc/pc/audiomonitor.h"
16 18
17 namespace cricket { 19 namespace cricket {
18 20
19 namespace { 21 namespace {
20 const int kMaxAudioLevel = 9; 22 const int kMaxAudioLevel = 9;
21 // To avoid overswitching, we disable switching for a period of time after a 23 // To avoid overswitching, we disable switching for a period of time after a
22 // switch is done. 24 // switch is done.
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 194 }
193 195
194 void CurrentSpeakerMonitor::OnMediaStreamsReset( 196 void CurrentSpeakerMonitor::OnMediaStreamsReset(
195 AudioSourceContext* audio_source_context) { 197 AudioSourceContext* audio_source_context) {
196 if (audio_source_context == audio_source_context_) { 198 if (audio_source_context == audio_source_context_) {
197 ssrc_to_speaking_state_map_.clear(); 199 ssrc_to_speaking_state_map_.clear();
198 } 200 }
199 } 201 }
200 202
201 } // namespace cricket 203 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/pc/currentspeakermonitor.h ('k') | webrtc/pc/externalhmac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698