| 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 30 matching lines...) Expand all Loading... |
| 41 #include "webrtc/voice_engine/voe_rtp_rtcp_impl.h" | 41 #include "webrtc/voice_engine/voe_rtp_rtcp_impl.h" |
| 42 #endif | 42 #endif |
| 43 #ifdef WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API | 43 #ifdef WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API |
| 44 #include "webrtc/voice_engine/voe_video_sync_impl.h" | 44 #include "webrtc/voice_engine/voe_video_sync_impl.h" |
| 45 #endif | 45 #endif |
| 46 #ifdef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API | 46 #ifdef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API |
| 47 #include "webrtc/voice_engine/voe_volume_control_impl.h" | 47 #include "webrtc/voice_engine/voe_volume_control_impl.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 namespace webrtc { | 50 namespace webrtc { |
| 51 namespace voe { |
| 52 class ChannelProxy; |
| 53 } // namespace voe |
| 51 | 54 |
| 52 class VoiceEngineImpl : public voe::SharedData, // Must be the first base class | 55 class VoiceEngineImpl : public voe::SharedData, // Must be the first base class |
| 53 public VoiceEngine, | 56 public VoiceEngine, |
| 54 #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API | 57 #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API |
| 55 public VoEAudioProcessingImpl, | 58 public VoEAudioProcessingImpl, |
| 56 #endif | 59 #endif |
| 57 #ifdef WEBRTC_VOICE_ENGINE_CODEC_API | 60 #ifdef WEBRTC_VOICE_ENGINE_CODEC_API |
| 58 public VoECodecImpl, | 61 public VoECodecImpl, |
| 59 #endif | 62 #endif |
| 60 #ifdef WEBRTC_VOICE_ENGINE_DTMF_API | 63 #ifdef WEBRTC_VOICE_ENGINE_DTMF_API |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 _ref_count(0), | 124 _ref_count(0), |
| 122 own_config_(owns_config ? config : NULL) { | 125 own_config_(owns_config ? config : NULL) { |
| 123 } | 126 } |
| 124 ~VoiceEngineImpl() override { assert(_ref_count.Value() == 0); } | 127 ~VoiceEngineImpl() override { assert(_ref_count.Value() == 0); } |
| 125 | 128 |
| 126 int AddRef(); | 129 int AddRef(); |
| 127 | 130 |
| 128 // This implements the Release() method for all the inherited interfaces. | 131 // This implements the Release() method for all the inherited interfaces. |
| 129 int Release() override; | 132 int Release() override; |
| 130 | 133 |
| 134 // Backdoor to access a voe::Channel object without a channel ID. This is only |
| 135 // to be used while refactoring the VoE API! |
| 136 virtual voe::ChannelProxy* GetChannelProxy(int channel_id); |
| 137 |
| 131 // This is *protected* so that FakeVoiceEngine can inherit from the class and | 138 // This is *protected* so that FakeVoiceEngine can inherit from the class and |
| 132 // manipulate the reference count. See: fake_voice_engine.h. | 139 // manipulate the reference count. See: fake_voice_engine.h. |
| 133 protected: | 140 protected: |
| 134 Atomic32 _ref_count; | 141 Atomic32 _ref_count; |
| 135 private: | 142 private: |
| 136 rtc::scoped_ptr<const Config> own_config_; | 143 rtc::scoped_ptr<const Config> own_config_; |
| 137 }; | 144 }; |
| 138 | 145 |
| 139 } // namespace webrtc | 146 } // namespace webrtc |
| 140 | 147 |
| 141 #endif // WEBRTC_VOICE_ENGINE_VOICE_ENGINE_IMPL_H | 148 #endif // WEBRTC_VOICE_ENGINE_VOICE_ENGINE_IMPL_H |
| OLD | NEW |