Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: webrtc/voice_engine/include/voe_base.h

Issue 2948763002: Allow an external audio processing module to be used in WebRTC (Closed)
Patch Set: tracking linux32_rel issue Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Removes and disables the observer class for runtime error control 117 // Removes and disables the observer class for runtime error control
118 // and warning notifications. Returns 0. 118 // and warning notifications. Returns 0.
119 virtual int DeRegisterVoiceEngineObserver() = 0; 119 virtual int DeRegisterVoiceEngineObserver() = 0;
120 120
121 // Initializes all common parts of the VoiceEngine; e.g. all 121 // Initializes all common parts of the VoiceEngine; e.g. all
122 // encoders/decoders, the sound card and core receiving components. 122 // encoders/decoders, the sound card and core receiving components.
123 // This method also makes it possible to install some user-defined external 123 // This method also makes it possible to install some user-defined external
124 // modules: 124 // modules:
125 // - The Audio Device Module (ADM) which implements all the audio layer 125 // - The Audio Device Module (ADM) which implements all the audio layer
126 // functionality in a separate (reference counted) module. 126 // functionality in a separate (reference counted) module.
127 // - The AudioProcessing module handles capture-side processing. VoiceEngine 127 // - The AudioProcessing module handles capture-side processing.
128 // takes ownership of this object.
129 // - An AudioDecoderFactory - used to create audio decoders. 128 // - An AudioDecoderFactory - used to create audio decoders.
130 // If NULL is passed for any of these, VoiceEngine will create its own. 129 // If NULL is passed for either of ADM or AudioDecoderFactory, VoiceEngine
131 // Returns -1 in case of an error, 0 otherwise. 130 // will create its own. Returns -1 in case of an error, 0 otherwise.
132 // TODO(ajm): Remove default NULLs. 131 // TODO(ajm): Remove default NULLs.
133 virtual int Init(AudioDeviceModule* external_adm = NULL, 132 virtual int Init(AudioDeviceModule* external_adm = NULL,
134 AudioProcessing* audioproc = NULL, 133 AudioProcessing* external_apm = nullptr,
135 const rtc::scoped_refptr<AudioDecoderFactory>& 134 const rtc::scoped_refptr<AudioDecoderFactory>&
136 decoder_factory = nullptr) = 0; 135 decoder_factory = nullptr) = 0;
137 136
138 // Returns NULL before Init() is called.
139 virtual AudioProcessing* audio_processing() = 0;
140
141 // This method is WIP - DO NOT USE! 137 // This method is WIP - DO NOT USE!
142 // Returns NULL before Init() is called. 138 // Returns NULL before Init() is called.
143 virtual AudioDeviceModule* audio_device_module() = 0; 139 virtual AudioDeviceModule* audio_device_module() = 0;
144 140
145 // This method is WIP - DO NOT USE! 141 // This method is WIP - DO NOT USE!
146 // Returns NULL before Init() is called. 142 // Returns NULL before Init() is called.
147 virtual voe::TransmitMixer* transmit_mixer() = 0; 143 virtual voe::TransmitMixer* transmit_mixer() = 0;
148 144
149 // Terminates all VoiceEngine functions and releases allocated resources. 145 // Terminates all VoiceEngine functions and releases allocated resources.
150 // Returns 0. 146 // Returns 0.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0; 198 virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0;
203 199
204 protected: 200 protected:
205 VoEBase() {} 201 VoEBase() {}
206 virtual ~VoEBase() {} 202 virtual ~VoEBase() {}
207 }; 203 };
208 204
209 } // namespace webrtc 205 } // namespace webrtc
210 206
211 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_H 207 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698