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

Side by Side Diff: webrtc/pc/test/fakeaudiocapturemodule.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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 int32_t InitSpeaker() override; 107 int32_t InitSpeaker() override;
108 bool SpeakerIsInitialized() const override; 108 bool SpeakerIsInitialized() const override;
109 int32_t InitMicrophone() override; 109 int32_t InitMicrophone() override;
110 bool MicrophoneIsInitialized() const override; 110 bool MicrophoneIsInitialized() const override;
111 111
112 int32_t SpeakerVolumeIsAvailable(bool* available) override; 112 int32_t SpeakerVolumeIsAvailable(bool* available) override;
113 int32_t SetSpeakerVolume(uint32_t volume) override; 113 int32_t SetSpeakerVolume(uint32_t volume) override;
114 int32_t SpeakerVolume(uint32_t* volume) const override; 114 int32_t SpeakerVolume(uint32_t* volume) const override;
115 int32_t MaxSpeakerVolume(uint32_t* max_volume) const override; 115 int32_t MaxSpeakerVolume(uint32_t* max_volume) const override;
116 int32_t MinSpeakerVolume(uint32_t* min_volume) const override; 116 int32_t MinSpeakerVolume(uint32_t* min_volume) const override;
117 int32_t SpeakerVolumeStepSize(uint16_t* step_size) const override;
118 117
119 int32_t MicrophoneVolumeIsAvailable(bool* available) override; 118 int32_t MicrophoneVolumeIsAvailable(bool* available) override;
120 int32_t SetMicrophoneVolume(uint32_t volume) override; 119 int32_t SetMicrophoneVolume(uint32_t volume) override;
121 int32_t MicrophoneVolume(uint32_t* volume) const override; 120 int32_t MicrophoneVolume(uint32_t* volume) const override;
122 int32_t MaxMicrophoneVolume(uint32_t* max_volume) const override; 121 int32_t MaxMicrophoneVolume(uint32_t* max_volume) const override;
123 122
124 int32_t MinMicrophoneVolume(uint32_t* min_volume) const override; 123 int32_t MinMicrophoneVolume(uint32_t* min_volume) const override;
125 int32_t MicrophoneVolumeStepSize(uint16_t* step_size) const override;
126 124
127 int32_t SpeakerMuteIsAvailable(bool* available) override; 125 int32_t SpeakerMuteIsAvailable(bool* available) override;
128 int32_t SetSpeakerMute(bool enable) override; 126 int32_t SetSpeakerMute(bool enable) override;
129 int32_t SpeakerMute(bool* enabled) const override; 127 int32_t SpeakerMute(bool* enabled) const override;
130 128
131 int32_t MicrophoneMuteIsAvailable(bool* available) override; 129 int32_t MicrophoneMuteIsAvailable(bool* available) override;
132 int32_t SetMicrophoneMute(bool enable) override; 130 int32_t SetMicrophoneMute(bool enable) override;
133 int32_t MicrophoneMute(bool* enabled) const override; 131 int32_t MicrophoneMute(bool* enabled) const override;
134 132
135 int32_t MicrophoneBoostIsAvailable(bool* available) override;
136 int32_t SetMicrophoneBoost(bool enable) override;
137 int32_t MicrophoneBoost(bool* enabled) const override;
138
139 int32_t StereoPlayoutIsAvailable(bool* available) const override; 133 int32_t StereoPlayoutIsAvailable(bool* available) const override;
140 int32_t SetStereoPlayout(bool enable) override; 134 int32_t SetStereoPlayout(bool enable) override;
141 int32_t StereoPlayout(bool* enabled) const override; 135 int32_t StereoPlayout(bool* enabled) const override;
142 int32_t StereoRecordingIsAvailable(bool* available) const override; 136 int32_t StereoRecordingIsAvailable(bool* available) const override;
143 int32_t SetStereoRecording(bool enable) override; 137 int32_t SetStereoRecording(bool enable) override;
144 int32_t StereoRecording(bool* enabled) const override; 138 int32_t StereoRecording(bool* enabled) const override;
145 int32_t SetRecordingChannel(const ChannelType channel) override; 139 int32_t SetRecordingChannel(const ChannelType channel) override;
146 int32_t RecordingChannel(ChannelType* channel) const override; 140 int32_t RecordingChannel(ChannelType* channel) const override;
147 141
148 int32_t SetPlayoutBuffer(const BufferType type,
149 uint16_t size_ms = 0) override;
150 int32_t PlayoutBuffer(BufferType* type, uint16_t* size_ms) const override;
151 int32_t PlayoutDelay(uint16_t* delay_ms) const override; 142 int32_t PlayoutDelay(uint16_t* delay_ms) const override;
152 int32_t RecordingDelay(uint16_t* delay_ms) const override; 143 int32_t RecordingDelay(uint16_t* delay_ms) const override;
153 144
154 int32_t CPULoad(uint16_t* load) const override;
155
156 int32_t StartRawOutputFileRecording(
157 const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) override;
158 int32_t StopRawOutputFileRecording() override;
159 int32_t StartRawInputFileRecording(
160 const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) override;
161 int32_t StopRawInputFileRecording() override;
162
163 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override; 145 int32_t SetRecordingSampleRate(const uint32_t samples_per_sec) override;
164 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override; 146 int32_t RecordingSampleRate(uint32_t* samples_per_sec) const override;
165 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override; 147 int32_t SetPlayoutSampleRate(const uint32_t samples_per_sec) override;
166 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override; 148 int32_t PlayoutSampleRate(uint32_t* samples_per_sec) const override;
167 149
168 int32_t ResetAudioDevice() override;
169 int32_t SetLoudspeakerStatus(bool enable) override; 150 int32_t SetLoudspeakerStatus(bool enable) override;
170 int32_t GetLoudspeakerStatus(bool* enabled) const override; 151 int32_t GetLoudspeakerStatus(bool* enabled) const override;
171 bool BuiltInAECIsAvailable() const override { return false; } 152 bool BuiltInAECIsAvailable() const override { return false; }
172 int32_t EnableBuiltInAEC(bool enable) override { return -1; } 153 int32_t EnableBuiltInAEC(bool enable) override { return -1; }
173 bool BuiltInAGCIsAvailable() const override { return false; } 154 bool BuiltInAGCIsAvailable() const override { return false; }
174 int32_t EnableBuiltInAGC(bool enable) override { return -1; } 155 int32_t EnableBuiltInAGC(bool enable) override { return -1; }
175 bool BuiltInNSIsAvailable() const override { return false; } 156 bool BuiltInNSIsAvailable() const override { return false; }
176 int32_t EnableBuiltInNS(bool enable) override { return -1; } 157 int32_t EnableBuiltInNS(bool enable) override { return -1; }
177 #if defined(WEBRTC_IOS) 158 #if defined(WEBRTC_IOS)
178 int GetPlayoutAudioParameters( 159 int GetPlayoutAudioParameters(
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 248
268 // Protects variables that are accessed from process_thread_ and 249 // Protects variables that are accessed from process_thread_ and
269 // the main thread. 250 // the main thread.
270 rtc::CriticalSection crit_; 251 rtc::CriticalSection crit_;
271 // Protects |audio_callback_| that is accessed from process_thread_ and 252 // Protects |audio_callback_| that is accessed from process_thread_ and
272 // the main thread. 253 // the main thread.
273 rtc::CriticalSection crit_callback_; 254 rtc::CriticalSection crit_callback_;
274 }; 255 };
275 256
276 #endif // WEBRTC_PC_TEST_FAKEAUDIOCAPTUREMODULE_H_ 257 #endif // WEBRTC_PC_TEST_FAKEAUDIOCAPTUREMODULE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/win/audio_device_core_win.cc ('k') | webrtc/pc/test/fakeaudiocapturemodule.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698