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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 // takes ownership of this object. | 125 // takes ownership of this object. |
126 // If NULL is passed for any of these, VoiceEngine will create its own. | 126 // If NULL is passed for any of these, VoiceEngine will create its own. |
127 // Returns -1 in case of an error, 0 otherwise. | 127 // Returns -1 in case of an error, 0 otherwise. |
128 // TODO(ajm): Remove default NULLs. | 128 // TODO(ajm): Remove default NULLs. |
129 virtual int Init(AudioDeviceModule* external_adm = NULL, | 129 virtual int Init(AudioDeviceModule* external_adm = NULL, |
130 AudioProcessing* audioproc = NULL) = 0; | 130 AudioProcessing* audioproc = NULL) = 0; |
131 | 131 |
132 // Returns NULL before Init() is called. | 132 // Returns NULL before Init() is called. |
133 virtual AudioProcessing* audio_processing() = 0; | 133 virtual AudioProcessing* audio_processing() = 0; |
134 | 134 |
135 // This method is WIP - DO NOT USE! | |
136 // Returns NULL before Init() is called. | |
137 virtual AudioDeviceModule* audio_device_module() = 0; | |
pthatcher1
2016/03/25 23:23:22
Why are we adding a method that shouldn't be used?
the sun
2016/03/29 21:46:40
All the legacy VoE interfaces are going away. This
| |
138 | |
135 // Terminates all VoiceEngine functions and releases allocated resources. | 139 // Terminates all VoiceEngine functions and releases allocated resources. |
136 // Returns 0. | 140 // Returns 0. |
137 virtual int Terminate() = 0; | 141 virtual int Terminate() = 0; |
138 | 142 |
139 // Creates a new channel and allocates the required resources for it. | 143 // Creates a new channel and allocates the required resources for it. |
140 // One can use |config| to configure the channel. Currently that is used for | 144 // One can use |config| to configure the channel. Currently that is used for |
141 // choosing between ACM1 and ACM2, when creating Audio Coding Module. | 145 // choosing between ACM1 and ACM2, when creating Audio Coding Module. |
142 // Returns channel ID or -1 in case of an error. | 146 // Returns channel ID or -1 in case of an error. |
143 virtual int CreateChannel() = 0; | 147 virtual int CreateChannel() = 0; |
144 virtual int CreateChannel(const Config& config) = 0; | 148 virtual int CreateChannel(const Config& config) = 0; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0; | 190 virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0; |
187 | 191 |
188 protected: | 192 protected: |
189 VoEBase() {} | 193 VoEBase() {} |
190 virtual ~VoEBase() {} | 194 virtual ~VoEBase() {} |
191 }; | 195 }; |
192 | 196 |
193 } // namespace webrtc | 197 } // namespace webrtc |
194 | 198 |
195 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_H | 199 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_H |
OLD | NEW |