OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 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 #ifndef WEBRTC_PC_AUDIOMONITOR_H_ | 11 #ifndef WEBRTC_PC_AUDIOMONITOR_H_ |
12 #define WEBRTC_PC_AUDIOMONITOR_H_ | 12 #define WEBRTC_PC_AUDIOMONITOR_H_ |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 #include <utility> | 15 #include <utility> |
16 | 16 |
| 17 #include "webrtc/base/sigslot.h" |
| 18 #include "webrtc/base/thread.h" |
17 #include "webrtc/p2p/base/port.h" | 19 #include "webrtc/p2p/base/port.h" |
18 #include "webrtc/rtc_base/sigslot.h" | |
19 #include "webrtc/rtc_base/thread.h" | |
20 | 20 |
21 namespace cricket { | 21 namespace cricket { |
22 | 22 |
23 class VoiceChannel; | 23 class VoiceChannel; |
24 | 24 |
25 struct AudioInfo { | 25 struct AudioInfo { |
26 int input_level; | 26 int input_level; |
27 int output_level; | 27 int output_level; |
28 typedef std::vector<std::pair<uint32_t, int> > StreamList; | 28 typedef std::vector<std::pair<uint32_t, int> > StreamList; |
29 StreamList active_streams; // ssrcs contributing to output_level | 29 StreamList active_streams; // ssrcs contributing to output_level |
(...skipping 21 matching lines...) Expand all Loading... |
51 VoiceChannel* voice_channel_; | 51 VoiceChannel* voice_channel_; |
52 rtc::Thread* monitoring_thread_; | 52 rtc::Thread* monitoring_thread_; |
53 rtc::CriticalSection crit_; | 53 rtc::CriticalSection crit_; |
54 uint32_t rate_; | 54 uint32_t rate_; |
55 bool monitoring_; | 55 bool monitoring_; |
56 }; | 56 }; |
57 | 57 |
58 } // namespace cricket | 58 } // namespace cricket |
59 | 59 |
60 #endif // WEBRTC_PC_AUDIOMONITOR_H_ | 60 #endif // WEBRTC_PC_AUDIOMONITOR_H_ |
OLD | NEW |