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

Side by Side Diff: webrtc/modules/audio_device/include/fake_audio_device.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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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
11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_
12 #define WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_
13
11 #include "webrtc/modules/audio_device/include/audio_device.h" 14 #include "webrtc/modules/audio_device/include/audio_device.h"
12 15
13 namespace webrtc { 16 namespace webrtc {
14 17
15 class FakeAudioDeviceModule : public AudioDeviceModule { 18 class FakeAudioDeviceModule : public AudioDeviceModule {
16 public: 19 public:
17 FakeAudioDeviceModule() {} 20 FakeAudioDeviceModule() {}
18 virtual ~FakeAudioDeviceModule() {} 21 virtual ~FakeAudioDeviceModule() {}
19 virtual int32_t AddRef() const { return 0; } 22 virtual int32_t AddRef() const { return 0; }
20 virtual int32_t Release() const { return 0; } 23 virtual int32_t Release() const { return 0; }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 142 }
140 virtual int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) { 143 virtual int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) {
141 return 0; 144 return 0;
142 } 145 }
143 virtual int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const { return 0; } 146 virtual int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const { return 0; }
144 virtual int32_t ResetAudioDevice() { return 0; } 147 virtual int32_t ResetAudioDevice() { return 0; }
145 virtual int32_t SetLoudspeakerStatus(bool enable) { return 0; } 148 virtual int32_t SetLoudspeakerStatus(bool enable) { return 0; }
146 virtual int32_t GetLoudspeakerStatus(bool* enabled) const { return 0; } 149 virtual int32_t GetLoudspeakerStatus(bool* enabled) const { return 0; }
147 virtual bool BuiltInAECIsAvailable() const { return false; } 150 virtual bool BuiltInAECIsAvailable() const { return false; }
148 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; } 151 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; }
149 virtual bool BuiltInAECIsEnabled() const { return false; }
150 virtual bool BuiltInAGCIsAvailable() const { return false; } 152 virtual bool BuiltInAGCIsAvailable() const { return false; }
151 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; } 153 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; }
152 virtual bool BuiltInNSIsAvailable() const { return false; } 154 virtual bool BuiltInNSIsAvailable() const { return false; }
153 virtual int32_t EnableBuiltInNS(bool enable) { return -1; } 155 virtual int32_t EnableBuiltInNS(bool enable) { return -1; }
156
157 #if defined(WEBRTC_IOS)
158 virtual int GetPlayoutAudioParameters(AudioParameters* params) const {
159 return -1;
160 }
161 virtual int GetRecordAudioParameters(AudioParameters* params) const {
162 return -1;
163 }
164 #endif // WEBRTC_IOS
154 }; 165 };
155 166
156 } // namespace webrtc 167 } // namespace webrtc
168
169 #endif // WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/include/audio_device.h ('k') | webrtc/modules/audio_device/include/mock_audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698