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

Side by Side Diff: webrtc/modules/audio_device/audio_device_generic.cc

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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bool AudioDeviceGeneric::BuiltInAECIsAvailable() const { 50 bool AudioDeviceGeneric::BuiltInAECIsAvailable() const {
51 LOG_F(LS_ERROR) << "Not supported on this platform"; 51 LOG_F(LS_ERROR) << "Not supported on this platform";
52 return false; 52 return false;
53 } 53 }
54 54
55 int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) { 55 int32_t AudioDeviceGeneric::EnableBuiltInAEC(bool enable) {
56 LOG_F(LS_ERROR) << "Not supported on this platform"; 56 LOG_F(LS_ERROR) << "Not supported on this platform";
57 return -1; 57 return -1;
58 } 58 }
59 59
60 bool AudioDeviceGeneric::BuiltInAECIsEnabled() const {
61 LOG_F(LS_ERROR) << "Not supported on this platform";
62 return false;
63 }
64
65 bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const { 60 bool AudioDeviceGeneric::BuiltInAGCIsAvailable() const {
66 LOG_F(LS_ERROR) << "Not supported on this platform"; 61 LOG_F(LS_ERROR) << "Not supported on this platform";
67 return false; 62 return false;
68 } 63 }
69 64
70 int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) { 65 int32_t AudioDeviceGeneric::EnableBuiltInAGC(bool enable) {
71 LOG_F(LS_ERROR) << "Not supported on this platform"; 66 LOG_F(LS_ERROR) << "Not supported on this platform";
72 return -1; 67 return -1;
73 } 68 }
74 69
75 bool AudioDeviceGeneric::BuiltInNSIsAvailable() const { 70 bool AudioDeviceGeneric::BuiltInNSIsAvailable() const {
76 LOG_F(LS_ERROR) << "Not supported on this platform"; 71 LOG_F(LS_ERROR) << "Not supported on this platform";
77 return false; 72 return false;
78 } 73 }
79 74
80 int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) { 75 int32_t AudioDeviceGeneric::EnableBuiltInNS(bool enable) {
81 LOG_F(LS_ERROR) << "Not supported on this platform"; 76 LOG_F(LS_ERROR) << "Not supported on this platform";
82 return -1; 77 return -1;
83 } 78 }
84 79
80 #if defined(WEBRTC_IOS)
85 int AudioDeviceGeneric::GetPlayoutAudioParameters( 81 int AudioDeviceGeneric::GetPlayoutAudioParameters(
86 AudioParameters* params) const { 82 AudioParameters* params) const {
87 LOG_F(LS_ERROR) << "Not supported on this platform"; 83 LOG_F(LS_ERROR) << "Not supported on this platform";
88 return -1; 84 return -1;
89 } 85 }
86
90 int AudioDeviceGeneric::GetRecordAudioParameters( 87 int AudioDeviceGeneric::GetRecordAudioParameters(
91 AudioParameters* params) const { 88 AudioParameters* params) const {
92 LOG_F(LS_ERROR) << "Not supported on this platform"; 89 LOG_F(LS_ERROR) << "Not supported on this platform";
93 return -1; 90 return -1;
94 } 91 }
92 #endif // WEBRTC_IOS
95 93
96 } // namespace webrtc 94 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/audio_device_generic.h ('k') | webrtc/modules/audio_device/audio_device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698