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

Side by Side Diff: webrtc/modules/audio_device/audio_device_impl.h

Issue 1344563002: Improving support for Android Audio Effects in WebRTC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improved comments Created 5 years, 3 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 int32_t SetRecordingSampleRate(const uint32_t samplesPerSec) override; 175 int32_t SetRecordingSampleRate(const uint32_t samplesPerSec) override;
176 int32_t RecordingSampleRate(uint32_t* samplesPerSec) const override; 176 int32_t RecordingSampleRate(uint32_t* samplesPerSec) const override;
177 int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) override; 177 int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) override;
178 int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const override; 178 int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const override;
179 179
180 // Mobile device specific functions 180 // Mobile device specific functions
181 int32_t ResetAudioDevice() override; 181 int32_t ResetAudioDevice() override;
182 int32_t SetLoudspeakerStatus(bool enable) override; 182 int32_t SetLoudspeakerStatus(bool enable) override;
183 int32_t GetLoudspeakerStatus(bool* enabled) const override; 183 int32_t GetLoudspeakerStatus(bool* enabled) const override;
184 184
185 bool BuiltInAECIsEnabled() const override;
185 bool BuiltInAECIsAvailable() const override; 186 bool BuiltInAECIsAvailable() const override;
186
187 int32_t EnableBuiltInAEC(bool enable) override; 187 int32_t EnableBuiltInAEC(bool enable) override;
188 bool BuiltInAECIsEnabled() const override; 188 bool BuiltInAGCIsAvailable() const override;
189 int32_t EnableBuiltInAGC(bool enable) override;
190 bool BuiltInNSIsAvailable() const override;
191 int32_t EnableBuiltInNS(bool enable) override;
189 192
190 int GetPlayoutAudioParameters(AudioParameters* params) const override; 193 int GetPlayoutAudioParameters(AudioParameters* params) const override;
191 int GetRecordAudioParameters(AudioParameters* params) const override; 194 int GetRecordAudioParameters(AudioParameters* params) const override;
192 195
193 int32_t Id() { return _id; } 196 int32_t Id() { return _id; }
194 #if defined(WEBRTC_ANDROID) 197 #if defined(WEBRTC_ANDROID)
195 // Only use this acccessor for test purposes on Android. 198 // Only use this acccessor for test purposes on Android.
196 AudioManager* GetAndroidAudioManagerForTest() { 199 AudioManager* GetAndroidAudioManagerForTest() {
197 return _audioManagerAndroid.get(); 200 return _audioManagerAndroid.get();
198 } 201 }
(...skipping 22 matching lines...) Expand all
221 PlatformType _platformType; 224 PlatformType _platformType;
222 bool _initialized; 225 bool _initialized;
223 mutable ErrorCode _lastError; 226 mutable ErrorCode _lastError;
224 }; 227 };
225 228
226 } // namespace webrtc 229 } // namespace webrtc
227 230
228 #endif // defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE) 231 #endif // defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE)
229 232
230 #endif // WEBRTC_MODULES_INTERFACE_AUDIO_DEVICE_IMPL_H_ 233 #endif // WEBRTC_MODULES_INTERFACE_AUDIO_DEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/audio_device_generic.cc ('k') | webrtc/modules/audio_device/audio_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698