| 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> | |
| 18 | |
| 19 #include <map> | 17 #include <map> |
| 20 | 18 |
| 19 #include "webrtc/base/basictypes.h" |
| 21 #include "webrtc/base/sigslot.h" | 20 #include "webrtc/base/sigslot.h" |
| 22 | 21 |
| 23 namespace cricket { | 22 namespace cricket { |
| 24 | 23 |
| 25 struct AudioInfo; | 24 struct AudioInfo; |
| 26 struct MediaStreams; | 25 struct MediaStreams; |
| 27 | 26 |
| 28 class AudioSourceContext { | 27 class AudioSourceContext { |
| 29 public: | 28 public: |
| 30 sigslot::signal2<AudioSourceContext*, const cricket::AudioInfo&> | 29 sigslot::signal2<AudioSourceContext*, const cricket::AudioInfo&> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 uint32_t current_speaker_ssrc_; | 86 uint32_t current_speaker_ssrc_; |
| 88 // To prevent overswitching, switching is disabled for some time after a | 87 // 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. | 88 // switch is made. This gives us the earliest time a switch is permitted. |
| 90 int64_t earliest_permitted_switch_time_; | 89 int64_t earliest_permitted_switch_time_; |
| 91 int min_time_between_switches_; | 90 int min_time_between_switches_; |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 } // namespace cricket | 93 } // namespace cricket |
| 95 | 94 |
| 96 #endif // WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ | 95 #endif // WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ |
| OLD | NEW |