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 |
11 #ifndef WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H | 11 #ifndef WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H |
12 #define WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H | 12 #define WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H |
13 | 13 |
14 #include "webrtc/voice_engine/include/voe_base.h" | 14 #include "webrtc/voice_engine/include/voe_base.h" |
15 | 15 |
| 16 #include "webrtc/base/criticalsection.h" |
16 #include "webrtc/modules/include/module_common_types.h" | 17 #include "webrtc/modules/include/module_common_types.h" |
17 #include "webrtc/voice_engine/shared_data.h" | 18 #include "webrtc/voice_engine/shared_data.h" |
18 | 19 |
19 namespace webrtc { | 20 namespace webrtc { |
20 | 21 |
21 class ProcessThread; | 22 class ProcessThread; |
22 | 23 |
23 class VoEBaseImpl : public VoEBase, | 24 class VoEBaseImpl : public VoEBase, |
24 public AudioTransport, | 25 public AudioTransport, |
25 public AudioDeviceObserver { | 26 public AudioDeviceObserver { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 132 |
132 void GetPlayoutData(int sample_rate, size_t number_of_channels, | 133 void GetPlayoutData(int sample_rate, size_t number_of_channels, |
133 size_t number_of_frames, bool feed_data_to_apm, | 134 size_t number_of_frames, bool feed_data_to_apm, |
134 void* audio_data, int64_t* elapsed_time_ms, | 135 void* audio_data, int64_t* elapsed_time_ms, |
135 int64_t* ntp_time_ms); | 136 int64_t* ntp_time_ms); |
136 | 137 |
137 // Initialize channel by setting Engine Information then initializing | 138 // Initialize channel by setting Engine Information then initializing |
138 // channel. | 139 // channel. |
139 int InitializeChannel(voe::ChannelOwner* channel_owner); | 140 int InitializeChannel(voe::ChannelOwner* channel_owner); |
140 VoiceEngineObserver* voiceEngineObserverPtr_; | 141 VoiceEngineObserver* voiceEngineObserverPtr_; |
141 CriticalSectionWrapper& callbackCritSect_; | 142 rtc::CriticalSection callbackCritSect_; |
142 | 143 |
143 AudioFrame audioFrame_; | 144 AudioFrame audioFrame_; |
144 voe::SharedData* shared_; | 145 voe::SharedData* shared_; |
145 }; | 146 }; |
146 | 147 |
147 } // namespace webrtc | 148 } // namespace webrtc |
148 | 149 |
149 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H | 150 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H |
OLD | NEW |