OLD | NEW |
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 // CurrentSpeakerMonitor monitors the audio levels for a session and determines | 11 // CurrentSpeakerMonitor monitors the audio levels for a session and determines |
12 // which participant is currently speaking. | 12 // which participant is currently speaking. |
13 | 13 |
14 #ifndef WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ | 14 #ifndef WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ |
15 #define WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ | 15 #define WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ |
16 | 16 |
17 #include <stdint.h> | 17 #include <stdint.h> |
18 | 18 |
19 #include <map> | 19 #include <map> |
20 | 20 |
21 #include "webrtc/rtc_base/sigslot.h" | 21 #include "webrtc/base/sigslot.h" |
22 | 22 |
23 namespace cricket { | 23 namespace cricket { |
24 | 24 |
25 struct AudioInfo; | 25 struct AudioInfo; |
26 struct MediaStreams; | 26 struct MediaStreams; |
27 | 27 |
28 class AudioSourceContext { | 28 class AudioSourceContext { |
29 public: | 29 public: |
30 sigslot::signal2<AudioSourceContext*, const cricket::AudioInfo&> | 30 sigslot::signal2<AudioSourceContext*, const cricket::AudioInfo&> |
31 SignalAudioMonitor; | 31 SignalAudioMonitor; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 uint32_t current_speaker_ssrc_; | 87 uint32_t current_speaker_ssrc_; |
88 // To prevent overswitching, switching is disabled for some time after a | 88 // To prevent overswitching, switching is disabled for some time after a |
89 // switch is made. This gives us the earliest time a switch is permitted. | 89 // switch is made. This gives us the earliest time a switch is permitted. |
90 int64_t earliest_permitted_switch_time_; | 90 int64_t earliest_permitted_switch_time_; |
91 int min_time_between_switches_; | 91 int min_time_between_switches_; |
92 }; | 92 }; |
93 | 93 |
94 } // namespace cricket | 94 } // namespace cricket |
95 | 95 |
96 #endif // WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ | 96 #endif // WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ |
OLD | NEW |