OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
(...skipping 24 matching lines...) Expand all Loading... |
35 #define WEBRTC_VOICE_ENGINE_VOE_BASE_H | 35 #define WEBRTC_VOICE_ENGINE_VOE_BASE_H |
36 | 36 |
37 #include "webrtc/common_types.h" | 37 #include "webrtc/common_types.h" |
38 | 38 |
39 namespace webrtc { | 39 namespace webrtc { |
40 | 40 |
41 class AudioDeviceModule; | 41 class AudioDeviceModule; |
42 class AudioProcessing; | 42 class AudioProcessing; |
43 class AudioTransport; | 43 class AudioTransport; |
44 class Config; | 44 class Config; |
| 45 class RtcEventLog; |
45 | 46 |
46 const int kVoEDefault = -1; | 47 const int kVoEDefault = -1; |
47 | 48 |
48 // VoiceEngineObserver | 49 // VoiceEngineObserver |
49 class WEBRTC_DLLEXPORT VoiceEngineObserver { | 50 class WEBRTC_DLLEXPORT VoiceEngineObserver { |
50 public: | 51 public: |
51 // This method will be called after the occurrence of any runtime error | 52 // This method will be called after the occurrence of any runtime error |
52 // code, or warning notification, when the observer interface has been | 53 // code, or warning notification, when the observer interface has been |
53 // installed using VoEBase::RegisterVoiceEngineObserver(). | 54 // installed using VoEBase::RegisterVoiceEngineObserver(). |
54 virtual void CallbackOnError(int channel, int errCode) = 0; | 55 virtual void CallbackOnError(int channel, int errCode) = 0; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // TODO(xians): Make the interface pure virtual after libjingle | 177 // TODO(xians): Make the interface pure virtual after libjingle |
177 // implements the interface in its FakeWebRtcVoiceEngine. | 178 // implements the interface in its FakeWebRtcVoiceEngine. |
178 virtual AudioTransport* audio_transport() { return NULL; } | 179 virtual AudioTransport* audio_transport() { return NULL; } |
179 | 180 |
180 // Associate a send channel to a receive channel. | 181 // Associate a send channel to a receive channel. |
181 // Used for obtaining RTT for a receive-only channel. | 182 // Used for obtaining RTT for a receive-only channel. |
182 // One should be careful not to crate a circular association, e.g., | 183 // One should be careful not to crate a circular association, e.g., |
183 // 1 <- 2 <- 1. | 184 // 1 <- 2 <- 1. |
184 virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0; | 185 virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0; |
185 | 186 |
| 187 // Get a pointer to the event logging object associated with this Voice |
| 188 // Engine. |
| 189 virtual RtcEventLog* GetEventLog() = 0; |
| 190 |
186 protected: | 191 protected: |
187 VoEBase() {} | 192 VoEBase() {} |
188 virtual ~VoEBase() {} | 193 virtual ~VoEBase() {} |
189 }; | 194 }; |
190 | 195 |
191 } // namespace webrtc | 196 } // namespace webrtc |
192 | 197 |
193 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_H | 198 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_H |
OLD | NEW |