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

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

Issue 3006793002: Removes unused WaveOut APIs from ADM (Closed)
Patch Set: Created 3 years, 3 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual int32_t StopPlayout() = 0; 101 virtual int32_t StopPlayout() = 0;
102 virtual bool Playing() const = 0; 102 virtual bool Playing() const = 0;
103 virtual int32_t StartRecording() = 0; 103 virtual int32_t StartRecording() = 0;
104 virtual int32_t StopRecording() = 0; 104 virtual int32_t StopRecording() = 0;
105 virtual bool Recording() const = 0; 105 virtual bool Recording() const = 0;
106 106
107 // Microphone Automatic Gain Control (AGC) 107 // Microphone Automatic Gain Control (AGC)
108 virtual int32_t SetAGC(bool enable) = 0; 108 virtual int32_t SetAGC(bool enable) = 0;
109 virtual bool AGC() const = 0; 109 virtual bool AGC() const = 0;
110 110
111 // Volume control based on the Windows Wave API (Windows only) 111 // Deprecated.
112 // TODO(henrika): to be removed.
112 virtual int32_t SetWaveOutVolume(uint16_t volumeLeft, 113 virtual int32_t SetWaveOutVolume(uint16_t volumeLeft,
The Sun (google.com) 2017/08/29 12:56:43 Is it possible to remove them directly? I can only
113 uint16_t volumeRight) = 0; 114 uint16_t volumeRight) { return -1; }
114 virtual int32_t WaveOutVolume(uint16_t* volumeLeft, 115 virtual int32_t WaveOutVolume(uint16_t* volumeLeft,
115 uint16_t* volumeRight) const = 0; 116 uint16_t* volumeRight) const { return -1; }
116 117
117 // Audio mixer initialization 118 // Audio mixer initialization
118 virtual int32_t InitSpeaker() = 0; 119 virtual int32_t InitSpeaker() = 0;
119 virtual bool SpeakerIsInitialized() const = 0; 120 virtual bool SpeakerIsInitialized() const = 0;
120 virtual int32_t InitMicrophone() = 0; 121 virtual int32_t InitMicrophone() = 0;
121 virtual bool MicrophoneIsInitialized() const = 0; 122 virtual bool MicrophoneIsInitialized() const = 0;
122 123
123 // Speaker volume controls 124 // Speaker volume controls
124 virtual int32_t SpeakerVolumeIsAvailable(bool* available) = 0; 125 virtual int32_t SpeakerVolumeIsAvailable(bool* available) = 0;
125 virtual int32_t SetSpeakerVolume(uint32_t volume) = 0; 126 virtual int32_t SetSpeakerVolume(uint32_t volume) = 0;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 virtual int GetRecordAudioParameters(AudioParameters* params) const = 0; 207 virtual int GetRecordAudioParameters(AudioParameters* params) const = 0;
207 #endif // WEBRTC_IOS 208 #endif // WEBRTC_IOS
208 209
209 protected: 210 protected:
210 ~AudioDeviceModule() override {} 211 ~AudioDeviceModule() override {}
211 }; 212 };
212 213
213 } // namespace webrtc 214 } // namespace webrtc
214 215
215 #endif // MODULES_AUDIO_DEVICE_INCLUDE_AUDIO_DEVICE_H_ 216 #endif // MODULES_AUDIO_DEVICE_INCLUDE_AUDIO_DEVICE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/dummy/file_audio_device.cc ('k') | webrtc/modules/audio_device/include/fake_audio_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698