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

Side by Side Diff: modules/audio_device/audio_device_generic.h

Issue 3020493002: Remove AudioDeviceObserver and make ADM not inherit from the Module interface.
Patch Set: linux build error Created 3 years, 2 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual int32_t EnableBuiltInAGC(bool enable); 135 virtual int32_t EnableBuiltInAGC(bool enable);
136 virtual int32_t EnableBuiltInNS(bool enable); 136 virtual int32_t EnableBuiltInNS(bool enable);
137 137
138 // iOS only. 138 // iOS only.
139 // TODO(henrika): add Android support. 139 // TODO(henrika): add Android support.
140 #if defined(WEBRTC_IOS) 140 #if defined(WEBRTC_IOS)
141 virtual int GetPlayoutAudioParameters(AudioParameters* params) const; 141 virtual int GetPlayoutAudioParameters(AudioParameters* params) const;
142 virtual int GetRecordAudioParameters(AudioParameters* params) const; 142 virtual int GetRecordAudioParameters(AudioParameters* params) const;
143 #endif // WEBRTC_IOS 143 #endif // WEBRTC_IOS
144 144
145 virtual bool PlayoutWarning() const = 0;
146 virtual bool PlayoutError() const = 0;
147 virtual bool RecordingWarning() const = 0;
148 virtual bool RecordingError() const = 0;
149 virtual void ClearPlayoutWarning() = 0;
150 virtual void ClearPlayoutError() = 0;
151 virtual void ClearRecordingWarning() = 0;
152 virtual void ClearRecordingError() = 0;
153
154 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0; 145 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0;
155 146
156 virtual ~AudioDeviceGeneric() {} 147 virtual ~AudioDeviceGeneric() {}
157 }; 148 };
158 149
159 } // namespace webrtc 150 } // namespace webrtc
160 151
161 #endif // AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H_ 152 #endif // AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698