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

Side by Side Diff: webrtc/modules/audio_device/ios/audio_device_not_implemented_ios.mm

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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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
11 #include "webrtc/modules/audio_device/ios/audio_device_ios.h" 11 #include "webrtc/modules/audio_device/ios/audio_device_ios.h"
12 12
13 #include "webrtc/rtc_base/checks.h" 13 #include "webrtc/rtc_base/checks.h"
14 #include "webrtc/rtc_base/logging.h" 14 #include "webrtc/rtc_base/logging.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 17
18 int32_t AudioDeviceIOS::PlayoutBuffer(AudioDeviceModule::BufferType& type,
19 uint16_t& sizeMS) const {
20 RTC_NOTREACHED() << "Not implemented";
21 return -1;
22 }
23
24 int32_t AudioDeviceIOS::ActiveAudioLayer( 18 int32_t AudioDeviceIOS::ActiveAudioLayer(
25 AudioDeviceModule::AudioLayer& audioLayer) const { 19 AudioDeviceModule::AudioLayer& audioLayer) const {
26 audioLayer = AudioDeviceModule::kPlatformDefaultAudio; 20 audioLayer = AudioDeviceModule::kPlatformDefaultAudio;
27 return 0; 21 return 0;
28 } 22 }
29 23
30 int32_t AudioDeviceIOS::ResetAudioDevice() {
31 RTC_NOTREACHED() << "Not implemented";
32 return -1;
33 }
34
35 int16_t AudioDeviceIOS::PlayoutDevices() { 24 int16_t AudioDeviceIOS::PlayoutDevices() {
36 // TODO(henrika): improve. 25 // TODO(henrika): improve.
37 LOG_F(LS_WARNING) << "Not implemented"; 26 LOG_F(LS_WARNING) << "Not implemented";
38 return (int16_t)1; 27 return (int16_t)1;
39 } 28 }
40 29
41 int16_t AudioDeviceIOS::RecordingDevices() { 30 int16_t AudioDeviceIOS::RecordingDevices() {
42 // TODO(henrika): improve. 31 // TODO(henrika): improve.
43 LOG_F(LS_WARNING) << "Not implemented"; 32 LOG_F(LS_WARNING) << "Not implemented";
44 return (int16_t)1; 33 return (int16_t)1;
(...skipping 25 matching lines...) Expand all
70 int32_t AudioDeviceIOS::MaxSpeakerVolume(uint32_t& maxVolume) const { 59 int32_t AudioDeviceIOS::MaxSpeakerVolume(uint32_t& maxVolume) const {
71 RTC_NOTREACHED() << "Not implemented"; 60 RTC_NOTREACHED() << "Not implemented";
72 return -1; 61 return -1;
73 } 62 }
74 63
75 int32_t AudioDeviceIOS::MinSpeakerVolume(uint32_t& minVolume) const { 64 int32_t AudioDeviceIOS::MinSpeakerVolume(uint32_t& minVolume) const {
76 RTC_NOTREACHED() << "Not implemented"; 65 RTC_NOTREACHED() << "Not implemented";
77 return -1; 66 return -1;
78 } 67 }
79 68
80 int32_t AudioDeviceIOS::SpeakerVolumeStepSize(uint16_t& stepSize) const {
81 RTC_NOTREACHED() << "Not implemented";
82 return -1;
83 }
84
85 int32_t AudioDeviceIOS::SpeakerMuteIsAvailable(bool& available) { 69 int32_t AudioDeviceIOS::SpeakerMuteIsAvailable(bool& available) {
86 available = false; 70 available = false;
87 return 0; 71 return 0;
88 } 72 }
89 73
90 int32_t AudioDeviceIOS::SetSpeakerMute(bool enable) { 74 int32_t AudioDeviceIOS::SetSpeakerMute(bool enable) {
91 RTC_NOTREACHED() << "Not implemented"; 75 RTC_NOTREACHED() << "Not implemented";
92 return -1; 76 return -1;
93 } 77 }
94 78
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 int32_t AudioDeviceIOS::SetMicrophoneMute(bool enable) { 123 int32_t AudioDeviceIOS::SetMicrophoneMute(bool enable) {
140 RTC_NOTREACHED() << "Not implemented"; 124 RTC_NOTREACHED() << "Not implemented";
141 return -1; 125 return -1;
142 } 126 }
143 127
144 int32_t AudioDeviceIOS::MicrophoneMute(bool& enabled) const { 128 int32_t AudioDeviceIOS::MicrophoneMute(bool& enabled) const {
145 RTC_NOTREACHED() << "Not implemented"; 129 RTC_NOTREACHED() << "Not implemented";
146 return -1; 130 return -1;
147 } 131 }
148 132
149 int32_t AudioDeviceIOS::MicrophoneBoostIsAvailable(bool& available) {
150 available = false;
151 return 0;
152 }
153
154 int32_t AudioDeviceIOS::SetMicrophoneBoost(bool enable) {
155 RTC_NOTREACHED() << "Not implemented";
156 return -1;
157 }
158
159 int32_t AudioDeviceIOS::MicrophoneBoost(bool& enabled) const {
160 enabled = false;
161 return 0;
162 }
163
164 int32_t AudioDeviceIOS::StereoRecordingIsAvailable(bool& available) { 133 int32_t AudioDeviceIOS::StereoRecordingIsAvailable(bool& available) {
165 available = false; 134 available = false;
166 return 0; 135 return 0;
167 } 136 }
168 137
169 int32_t AudioDeviceIOS::SetStereoRecording(bool enable) { 138 int32_t AudioDeviceIOS::SetStereoRecording(bool enable) {
170 LOG_F(LS_WARNING) << "Not implemented"; 139 LOG_F(LS_WARNING) << "Not implemented";
171 return -1; 140 return -1;
172 } 141 }
173 142
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 int32_t AudioDeviceIOS::MaxMicrophoneVolume(uint32_t& maxVolume) const { 189 int32_t AudioDeviceIOS::MaxMicrophoneVolume(uint32_t& maxVolume) const {
221 RTC_NOTREACHED() << "Not implemented"; 190 RTC_NOTREACHED() << "Not implemented";
222 return -1; 191 return -1;
223 } 192 }
224 193
225 int32_t AudioDeviceIOS::MinMicrophoneVolume(uint32_t& minVolume) const { 194 int32_t AudioDeviceIOS::MinMicrophoneVolume(uint32_t& minVolume) const {
226 RTC_NOTREACHED() << "Not implemented"; 195 RTC_NOTREACHED() << "Not implemented";
227 return -1; 196 return -1;
228 } 197 }
229 198
230 int32_t AudioDeviceIOS::MicrophoneVolumeStepSize(uint16_t& stepSize) const {
231 RTC_NOTREACHED() << "Not implemented";
232 return -1;
233 }
234
235 int32_t AudioDeviceIOS::PlayoutDeviceName(uint16_t index, 199 int32_t AudioDeviceIOS::PlayoutDeviceName(uint16_t index,
236 char name[kAdmMaxDeviceNameSize], 200 char name[kAdmMaxDeviceNameSize],
237 char guid[kAdmMaxGuidSize]) { 201 char guid[kAdmMaxGuidSize]) {
238 RTC_NOTREACHED() << "Not implemented"; 202 RTC_NOTREACHED() << "Not implemented";
239 return -1; 203 return -1;
240 } 204 }
241 205
242 int32_t AudioDeviceIOS::RecordingDeviceName(uint16_t index, 206 int32_t AudioDeviceIOS::RecordingDeviceName(uint16_t index,
243 char name[kAdmMaxDeviceNameSize], 207 char name[kAdmMaxDeviceNameSize],
244 char guid[kAdmMaxGuidSize]) { 208 char guid[kAdmMaxGuidSize]) {
(...skipping 15 matching lines...) Expand all
260 int32_t AudioDeviceIOS::PlayoutIsAvailable(bool& available) { 224 int32_t AudioDeviceIOS::PlayoutIsAvailable(bool& available) {
261 available = true; 225 available = true;
262 return 0; 226 return 0;
263 } 227 }
264 228
265 int32_t AudioDeviceIOS::RecordingIsAvailable(bool& available) { 229 int32_t AudioDeviceIOS::RecordingIsAvailable(bool& available) {
266 available = true; 230 available = true;
267 return 0; 231 return 0;
268 } 232 }
269 233
270 int32_t AudioDeviceIOS::SetPlayoutBuffer(
271 const AudioDeviceModule::BufferType type,
272 uint16_t sizeMS) {
273 RTC_NOTREACHED() << "Not implemented";
274 return -1;
275 }
276
277 int32_t AudioDeviceIOS::CPULoad(uint16_t&) const {
278 RTC_NOTREACHED() << "Not implemented";
279 return -1;
280 }
281
282 } // namespace webrtc 234 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/ios/audio_device_ios.h ('k') | webrtc/modules/audio_device/linux/audio_device_alsa_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698