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

Side by Side Diff: webrtc/api/test/fakeaudiocapturemodule.h

Issue 2222563002: Fix warnings, simplify ADM. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix IOS compile. Created 4 years, 4 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
« no previous file with comments | « no previous file | webrtc/modules/audio_device/audio_device_generic.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 int32_t ResetAudioDevice() override; 173 int32_t ResetAudioDevice() override;
174 int32_t SetLoudspeakerStatus(bool enable) override; 174 int32_t SetLoudspeakerStatus(bool enable) override;
175 int32_t GetLoudspeakerStatus(bool* enabled) const override; 175 int32_t GetLoudspeakerStatus(bool* enabled) const override;
176 bool BuiltInAECIsAvailable() const override { return false; } 176 bool BuiltInAECIsAvailable() const override { return false; }
177 int32_t EnableBuiltInAEC(bool enable) override { return -1; } 177 int32_t EnableBuiltInAEC(bool enable) override { return -1; }
178 bool BuiltInAGCIsAvailable() const override { return false; } 178 bool BuiltInAGCIsAvailable() const override { return false; }
179 int32_t EnableBuiltInAGC(bool enable) override { return -1; } 179 int32_t EnableBuiltInAGC(bool enable) override { return -1; }
180 bool BuiltInNSIsAvailable() const override { return false; } 180 bool BuiltInNSIsAvailable() const override { return false; }
181 int32_t EnableBuiltInNS(bool enable) override { return -1; } 181 int32_t EnableBuiltInNS(bool enable) override { return -1; }
182 #if defined(WEBRTC_IOS)
183 int GetPlayoutAudioParameters(
184 webrtc::AudioParameters* params) const override {
185 return -1;
186 }
187 int GetRecordAudioParameters(webrtc::AudioParameters* params) const override {
188 return -1;
189 }
190 #endif // WEBRTC_IOS
191
182 // End of functions inherited from webrtc::AudioDeviceModule. 192 // End of functions inherited from webrtc::AudioDeviceModule.
183 193
184 // The following function is inherited from rtc::MessageHandler. 194 // The following function is inherited from rtc::MessageHandler.
185 void OnMessage(rtc::Message* msg) override; 195 void OnMessage(rtc::Message* msg) override;
186 196
187 protected: 197 protected:
188 // The constructor is protected because the class needs to be created as a 198 // The constructor is protected because the class needs to be created as a
189 // reference counted object (for memory managment reasons). It could be 199 // reference counted object (for memory managment reasons). It could be
190 // exposed in which case the burden of proper instantiation would be put on 200 // exposed in which case the burden of proper instantiation would be put on
191 // the creator of a FakeAudioCaptureModule instance. To create an instance of 201 // the creator of a FakeAudioCaptureModule instance. To create an instance of
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 272
263 // Protects variables that are accessed from process_thread_ and 273 // Protects variables that are accessed from process_thread_ and
264 // the main thread. 274 // the main thread.
265 rtc::CriticalSection crit_; 275 rtc::CriticalSection crit_;
266 // Protects |audio_callback_| that is accessed from process_thread_ and 276 // Protects |audio_callback_| that is accessed from process_thread_ and
267 // the main thread. 277 // the main thread.
268 rtc::CriticalSection crit_callback_; 278 rtc::CriticalSection crit_callback_;
269 }; 279 };
270 280
271 #endif // WEBRTC_API_TEST_FAKEAUDIOCAPTUREMODULE_H_ 281 #endif // WEBRTC_API_TEST_FAKEAUDIOCAPTUREMODULE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_device/audio_device_generic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698