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

Side by Side Diff: webrtc/modules/audio_device/ios/audio_device_ios.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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 int32_t RecordingDelay(uint16_t& delayMS) const override; 86 int32_t RecordingDelay(uint16_t& delayMS) const override;
87 87
88 // Native audio parameters stored during construction. 88 // Native audio parameters stored during construction.
89 // These methods are unique for the iOS implementation. 89 // These methods are unique for the iOS implementation.
90 int GetPlayoutAudioParameters(AudioParameters* params) const override; 90 int GetPlayoutAudioParameters(AudioParameters* params) const override;
91 int GetRecordAudioParameters(AudioParameters* params) const override; 91 int GetRecordAudioParameters(AudioParameters* params) const override;
92 92
93 // These methods are currently not fully implemented on iOS: 93 // These methods are currently not fully implemented on iOS:
94 94
95 // See audio_device_not_implemented.cc for trivial implementations. 95 // See audio_device_not_implemented.cc for trivial implementations.
96 int32_t PlayoutBuffer(AudioDeviceModule::BufferType& type,
97 uint16_t& sizeMS) const override;
98 int32_t ActiveAudioLayer( 96 int32_t ActiveAudioLayer(
99 AudioDeviceModule::AudioLayer& audioLayer) const override; 97 AudioDeviceModule::AudioLayer& audioLayer) const override;
100 int32_t ResetAudioDevice() override;
101 int32_t PlayoutIsAvailable(bool& available) override; 98 int32_t PlayoutIsAvailable(bool& available) override;
102 int32_t RecordingIsAvailable(bool& available) override; 99 int32_t RecordingIsAvailable(bool& available) override;
103 int32_t SetAGC(bool enable) override; 100 int32_t SetAGC(bool enable) override;
104 bool AGC() const override; 101 bool AGC() const override;
105 int16_t PlayoutDevices() override; 102 int16_t PlayoutDevices() override;
106 int16_t RecordingDevices() override; 103 int16_t RecordingDevices() override;
107 int32_t PlayoutDeviceName(uint16_t index, 104 int32_t PlayoutDeviceName(uint16_t index,
108 char name[kAdmMaxDeviceNameSize], 105 char name[kAdmMaxDeviceNameSize],
109 char guid[kAdmMaxGuidSize]) override; 106 char guid[kAdmMaxGuidSize]) override;
110 int32_t RecordingDeviceName(uint16_t index, 107 int32_t RecordingDeviceName(uint16_t index,
111 char name[kAdmMaxDeviceNameSize], 108 char name[kAdmMaxDeviceNameSize],
112 char guid[kAdmMaxGuidSize]) override; 109 char guid[kAdmMaxGuidSize]) override;
113 int32_t SetPlayoutDevice(uint16_t index) override; 110 int32_t SetPlayoutDevice(uint16_t index) override;
114 int32_t SetPlayoutDevice( 111 int32_t SetPlayoutDevice(
115 AudioDeviceModule::WindowsDeviceType device) override; 112 AudioDeviceModule::WindowsDeviceType device) override;
116 int32_t SetRecordingDevice(uint16_t index) override; 113 int32_t SetRecordingDevice(uint16_t index) override;
117 int32_t SetRecordingDevice( 114 int32_t SetRecordingDevice(
118 AudioDeviceModule::WindowsDeviceType device) override; 115 AudioDeviceModule::WindowsDeviceType device) override;
119 int32_t InitSpeaker() override; 116 int32_t InitSpeaker() override;
120 bool SpeakerIsInitialized() const override; 117 bool SpeakerIsInitialized() const override;
121 int32_t InitMicrophone() override; 118 int32_t InitMicrophone() override;
122 bool MicrophoneIsInitialized() const override; 119 bool MicrophoneIsInitialized() const override;
123 int32_t SpeakerVolumeIsAvailable(bool& available) override; 120 int32_t SpeakerVolumeIsAvailable(bool& available) override;
124 int32_t SetSpeakerVolume(uint32_t volume) override; 121 int32_t SetSpeakerVolume(uint32_t volume) override;
125 int32_t SpeakerVolume(uint32_t& volume) const override; 122 int32_t SpeakerVolume(uint32_t& volume) const override;
126 int32_t MaxSpeakerVolume(uint32_t& maxVolume) const override; 123 int32_t MaxSpeakerVolume(uint32_t& maxVolume) const override;
127 int32_t MinSpeakerVolume(uint32_t& minVolume) const override; 124 int32_t MinSpeakerVolume(uint32_t& minVolume) const override;
128 int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const override;
129 int32_t MicrophoneVolumeIsAvailable(bool& available) override; 125 int32_t MicrophoneVolumeIsAvailable(bool& available) override;
130 int32_t SetMicrophoneVolume(uint32_t volume) override; 126 int32_t SetMicrophoneVolume(uint32_t volume) override;
131 int32_t MicrophoneVolume(uint32_t& volume) const override; 127 int32_t MicrophoneVolume(uint32_t& volume) const override;
132 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const override; 128 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const override;
133 int32_t MinMicrophoneVolume(uint32_t& minVolume) const override; 129 int32_t MinMicrophoneVolume(uint32_t& minVolume) const override;
134 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const override;
135 int32_t MicrophoneMuteIsAvailable(bool& available) override; 130 int32_t MicrophoneMuteIsAvailable(bool& available) override;
136 int32_t SetMicrophoneMute(bool enable) override; 131 int32_t SetMicrophoneMute(bool enable) override;
137 int32_t MicrophoneMute(bool& enabled) const override; 132 int32_t MicrophoneMute(bool& enabled) const override;
138 int32_t SpeakerMuteIsAvailable(bool& available) override; 133 int32_t SpeakerMuteIsAvailable(bool& available) override;
139 int32_t SetSpeakerMute(bool enable) override; 134 int32_t SetSpeakerMute(bool enable) override;
140 int32_t SpeakerMute(bool& enabled) const override; 135 int32_t SpeakerMute(bool& enabled) const override;
141 int32_t MicrophoneBoostIsAvailable(bool& available) override;
142 int32_t SetMicrophoneBoost(bool enable) override;
143 int32_t MicrophoneBoost(bool& enabled) const override;
144 int32_t StereoPlayoutIsAvailable(bool& available) override; 136 int32_t StereoPlayoutIsAvailable(bool& available) override;
145 int32_t SetStereoPlayout(bool enable) override; 137 int32_t SetStereoPlayout(bool enable) override;
146 int32_t StereoPlayout(bool& enabled) const override; 138 int32_t StereoPlayout(bool& enabled) const override;
147 int32_t StereoRecordingIsAvailable(bool& available) override; 139 int32_t StereoRecordingIsAvailable(bool& available) override;
148 int32_t SetStereoRecording(bool enable) override; 140 int32_t SetStereoRecording(bool enable) override;
149 int32_t StereoRecording(bool& enabled) const override; 141 int32_t StereoRecording(bool& enabled) const override;
150 int32_t SetPlayoutBuffer(const AudioDeviceModule::BufferType type,
151 uint16_t sizeMS) override;
152 int32_t CPULoad(uint16_t& load) const override;
153 bool PlayoutWarning() const override; 142 bool PlayoutWarning() const override;
154 bool PlayoutError() const override; 143 bool PlayoutError() const override;
155 bool RecordingWarning() const override; 144 bool RecordingWarning() const override;
156 bool RecordingError() const override; 145 bool RecordingError() const override;
157 void ClearPlayoutWarning() override {} 146 void ClearPlayoutWarning() override {}
158 void ClearPlayoutError() override {} 147 void ClearPlayoutError() override {}
159 void ClearRecordingWarning() override {} 148 void ClearRecordingWarning() override {}
160 void ClearRecordingError() override {} 149 void ClearRecordingError() override {}
161 150
162 // AudioSessionObserver methods. May be called from any thread. 151 // AudioSessionObserver methods. May be called from any thread.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // Contains the time for when the last output volume change was detected. 298 // Contains the time for when the last output volume change was detected.
310 int64_t last_output_volume_change_time_ ACCESS_ON(thread_checker_); 299 int64_t last_output_volume_change_time_ ACCESS_ON(thread_checker_);
311 300
312 // Exposes private members for testing purposes only. 301 // Exposes private members for testing purposes only.
313 FRIEND_TEST_ALL_PREFIXES(AudioDeviceTest, testInterruptedAudioSession); 302 FRIEND_TEST_ALL_PREFIXES(AudioDeviceTest, testInterruptedAudioSession);
314 }; 303 };
315 304
316 } // namespace webrtc 305 } // namespace webrtc
317 306
318 #endif // WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_DEVICE_IOS_H_ 307 #endif // WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_DEVICE_IOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698