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

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

Issue 3006803002: Removes unused APIs from the ADM (part II) (Closed)
Patch Set: nit 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual bool SpeakerIsInitialized() const = 0; 80 virtual bool SpeakerIsInitialized() const = 0;
81 virtual int32_t InitMicrophone() = 0; 81 virtual int32_t InitMicrophone() = 0;
82 virtual bool MicrophoneIsInitialized() const = 0; 82 virtual bool MicrophoneIsInitialized() const = 0;
83 83
84 // Speaker volume controls 84 // Speaker volume controls
85 virtual int32_t SpeakerVolumeIsAvailable(bool& available) = 0; 85 virtual int32_t SpeakerVolumeIsAvailable(bool& available) = 0;
86 virtual int32_t SetSpeakerVolume(uint32_t volume) = 0; 86 virtual int32_t SetSpeakerVolume(uint32_t volume) = 0;
87 virtual int32_t SpeakerVolume(uint32_t& volume) const = 0; 87 virtual int32_t SpeakerVolume(uint32_t& volume) const = 0;
88 virtual int32_t MaxSpeakerVolume(uint32_t& maxVolume) const = 0; 88 virtual int32_t MaxSpeakerVolume(uint32_t& maxVolume) const = 0;
89 virtual int32_t MinSpeakerVolume(uint32_t& minVolume) const = 0; 89 virtual int32_t MinSpeakerVolume(uint32_t& minVolume) const = 0;
90 virtual int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const = 0;
91 90
92 // Microphone volume controls 91 // Microphone volume controls
93 virtual int32_t MicrophoneVolumeIsAvailable(bool& available) = 0; 92 virtual int32_t MicrophoneVolumeIsAvailable(bool& available) = 0;
94 virtual int32_t SetMicrophoneVolume(uint32_t volume) = 0; 93 virtual int32_t SetMicrophoneVolume(uint32_t volume) = 0;
95 virtual int32_t MicrophoneVolume(uint32_t& volume) const = 0; 94 virtual int32_t MicrophoneVolume(uint32_t& volume) const = 0;
96 virtual int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const = 0; 95 virtual int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const = 0;
97 virtual int32_t MinMicrophoneVolume(uint32_t& minVolume) const = 0; 96 virtual int32_t MinMicrophoneVolume(uint32_t& minVolume) const = 0;
98 virtual int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const = 0;
99 97
100 // Speaker mute control 98 // Speaker mute control
101 virtual int32_t SpeakerMuteIsAvailable(bool& available) = 0; 99 virtual int32_t SpeakerMuteIsAvailable(bool& available) = 0;
102 virtual int32_t SetSpeakerMute(bool enable) = 0; 100 virtual int32_t SetSpeakerMute(bool enable) = 0;
103 virtual int32_t SpeakerMute(bool& enabled) const = 0; 101 virtual int32_t SpeakerMute(bool& enabled) const = 0;
104 102
105 // Microphone mute control 103 // Microphone mute control
106 virtual int32_t MicrophoneMuteIsAvailable(bool& available) = 0; 104 virtual int32_t MicrophoneMuteIsAvailable(bool& available) = 0;
107 virtual int32_t SetMicrophoneMute(bool enable) = 0; 105 virtual int32_t SetMicrophoneMute(bool enable) = 0;
108 virtual int32_t MicrophoneMute(bool& enabled) const = 0; 106 virtual int32_t MicrophoneMute(bool& enabled) const = 0;
109 107
110 // Microphone boost control
111 virtual int32_t MicrophoneBoostIsAvailable(bool& available) = 0;
112 virtual int32_t SetMicrophoneBoost(bool enable) = 0;
113 virtual int32_t MicrophoneBoost(bool& enabled) const = 0;
114
115 // Stereo support 108 // Stereo support
116 virtual int32_t StereoPlayoutIsAvailable(bool& available) = 0; 109 virtual int32_t StereoPlayoutIsAvailable(bool& available) = 0;
117 virtual int32_t SetStereoPlayout(bool enable) = 0; 110 virtual int32_t SetStereoPlayout(bool enable) = 0;
118 virtual int32_t StereoPlayout(bool& enabled) const = 0; 111 virtual int32_t StereoPlayout(bool& enabled) const = 0;
119 virtual int32_t StereoRecordingIsAvailable(bool& available) = 0; 112 virtual int32_t StereoRecordingIsAvailable(bool& available) = 0;
120 virtual int32_t SetStereoRecording(bool enable) = 0; 113 virtual int32_t SetStereoRecording(bool enable) = 0;
121 virtual int32_t StereoRecording(bool& enabled) const = 0; 114 virtual int32_t StereoRecording(bool& enabled) const = 0;
122 115
123 // Delay information and control 116 // Delay information and control
124 virtual int32_t SetPlayoutBuffer(const AudioDeviceModule::BufferType type,
125 uint16_t sizeMS = 0) = 0;
126 virtual int32_t PlayoutBuffer(AudioDeviceModule::BufferType& type,
127 uint16_t& sizeMS) const = 0;
128 virtual int32_t PlayoutDelay(uint16_t& delayMS) const = 0; 117 virtual int32_t PlayoutDelay(uint16_t& delayMS) const = 0;
129 virtual int32_t RecordingDelay(uint16_t& delayMS) const = 0; 118 virtual int32_t RecordingDelay(uint16_t& delayMS) const = 0;
130 119
131 // CPU load
132 virtual int32_t CPULoad(uint16_t& load) const = 0;
133
134 // Native sample rate controls (samples/sec) 120 // Native sample rate controls (samples/sec)
135 virtual int32_t SetRecordingSampleRate(const uint32_t samplesPerSec); 121 virtual int32_t SetRecordingSampleRate(const uint32_t samplesPerSec);
136 virtual int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec); 122 virtual int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec);
137 123
138 // Speaker audio routing (for mobile devices) 124 // Speaker audio routing (for mobile devices)
139 virtual int32_t SetLoudspeakerStatus(bool enable); 125 virtual int32_t SetLoudspeakerStatus(bool enable);
140 virtual int32_t GetLoudspeakerStatus(bool& enable) const; 126 virtual int32_t GetLoudspeakerStatus(bool& enable) const;
141 127
142 // Reset Audio Device (for mobile devices)
143 virtual int32_t ResetAudioDevice();
144
145 // Sound Audio Device control (for WinCE only)
146 virtual int32_t SoundDeviceControl(unsigned int par1 = 0,
147 unsigned int par2 = 0,
148 unsigned int par3 = 0,
149 unsigned int par4 = 0);
150
151 // Android only 128 // Android only
152 virtual bool BuiltInAECIsAvailable() const; 129 virtual bool BuiltInAECIsAvailable() const;
153 virtual bool BuiltInAGCIsAvailable() const; 130 virtual bool BuiltInAGCIsAvailable() const;
154 virtual bool BuiltInNSIsAvailable() const; 131 virtual bool BuiltInNSIsAvailable() const;
155 132
156 // Windows Core Audio and Android only. 133 // Windows Core Audio and Android only.
157 virtual int32_t EnableBuiltInAEC(bool enable); 134 virtual int32_t EnableBuiltInAEC(bool enable);
158 virtual int32_t EnableBuiltInAGC(bool enable); 135 virtual int32_t EnableBuiltInAGC(bool enable);
159 virtual int32_t EnableBuiltInNS(bool enable); 136 virtual int32_t EnableBuiltInNS(bool enable);
160 137
(...skipping 14 matching lines...) Expand all
175 virtual void ClearRecordingError() = 0; 152 virtual void ClearRecordingError() = 0;
176 153
177 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0; 154 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0;
178 155
179 virtual ~AudioDeviceGeneric() {} 156 virtual ~AudioDeviceGeneric() {}
180 }; 157 };
181 158
182 } // namespace webrtc 159 } // namespace webrtc
183 160
184 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H 161 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/audio_device_data_observer.cc ('k') | webrtc/modules/audio_device/audio_device_generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698