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

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

Issue 1206783002: Cleanup of iOS AudioDevice implementation (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years, 5 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // 1. StartPlayout() must be called before StartRecording(). 195 // 1. StartPlayout() must be called before StartRecording().
196 // 2. StopRecording() should be called before StopPlayout(). 196 // 2. StopRecording() should be called before StopPlayout().
197 // The reverse order may cause garbage audio to be rendered or the 197 // The reverse order may cause garbage audio to be rendered or the
198 // capture side to halt until StopRecording() is called. 198 // capture side to halt until StopRecording() is called.
199 // TODO(henrika): Make pure virtual after updating Chromium. 199 // TODO(henrika): Make pure virtual after updating Chromium.
200 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; } 200 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; }
201 201
202 // Don't use. 202 // Don't use.
203 virtual bool BuiltInAECIsEnabled() const { return false; } 203 virtual bool BuiltInAECIsEnabled() const { return false; }
204 204
205 // Only supported on iOS.
206 // TODO(henrika): Make pure virtual after updating Chromium.
207 virtual int GetPlayoutAudioParameters(AudioParameters* params) const {
208 return -1;
209 }
210 virtual int GetRecordAudioParameters(AudioParameters* params) const {
211 return -1;
212 }
213
205 protected: 214 protected:
206 virtual ~AudioDeviceModule() {}; 215 virtual ~AudioDeviceModule() {}
207 }; 216 };
208 217
209 AudioDeviceModule* CreateAudioDeviceModule( 218 AudioDeviceModule* CreateAudioDeviceModule(
210 int32_t id, AudioDeviceModule::AudioLayer audioLayer); 219 int32_t id, AudioDeviceModule::AudioLayer audioLayer);
211 220
212 } // namespace webrtc 221 } // namespace webrtc
213 222
214 #endif // MODULES_AUDIO_DEVICE_INCLUDE_AUDIO_DEVICE_H_ 223 #endif // MODULES_AUDIO_DEVICE_INCLUDE_AUDIO_DEVICE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/audio_device_impl.cc ('k') | webrtc/modules/audio_device/include/audio_device_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698