| OLD | NEW |
| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 bool SpeakerIsInitialized() const override; | 103 bool SpeakerIsInitialized() const override; |
| 104 int32_t InitMicrophone() override; | 104 int32_t InitMicrophone() override; |
| 105 bool MicrophoneIsInitialized() const override; | 105 bool MicrophoneIsInitialized() const override; |
| 106 | 106 |
| 107 // Speaker volume controls | 107 // Speaker volume controls |
| 108 int32_t SpeakerVolumeIsAvailable(bool* available) override; | 108 int32_t SpeakerVolumeIsAvailable(bool* available) override; |
| 109 int32_t SetSpeakerVolume(uint32_t volume) override; | 109 int32_t SetSpeakerVolume(uint32_t volume) override; |
| 110 int32_t SpeakerVolume(uint32_t* volume) const override; | 110 int32_t SpeakerVolume(uint32_t* volume) const override; |
| 111 int32_t MaxSpeakerVolume(uint32_t* maxVolume) const override; | 111 int32_t MaxSpeakerVolume(uint32_t* maxVolume) const override; |
| 112 int32_t MinSpeakerVolume(uint32_t* minVolume) const override; | 112 int32_t MinSpeakerVolume(uint32_t* minVolume) const override; |
| 113 int32_t SpeakerVolumeStepSize(uint16_t* stepSize) const override; | |
| 114 | 113 |
| 115 // Microphone volume controls | 114 // Microphone volume controls |
| 116 int32_t MicrophoneVolumeIsAvailable(bool* available) override; | 115 int32_t MicrophoneVolumeIsAvailable(bool* available) override; |
| 117 int32_t SetMicrophoneVolume(uint32_t volume) override; | 116 int32_t SetMicrophoneVolume(uint32_t volume) override; |
| 118 int32_t MicrophoneVolume(uint32_t* volume) const override; | 117 int32_t MicrophoneVolume(uint32_t* volume) const override; |
| 119 int32_t MaxMicrophoneVolume(uint32_t* maxVolume) const override; | 118 int32_t MaxMicrophoneVolume(uint32_t* maxVolume) const override; |
| 120 int32_t MinMicrophoneVolume(uint32_t* minVolume) const override; | 119 int32_t MinMicrophoneVolume(uint32_t* minVolume) const override; |
| 121 int32_t MicrophoneVolumeStepSize(uint16_t* stepSize) const override; | |
| 122 | 120 |
| 123 // Speaker mute control | 121 // Speaker mute control |
| 124 int32_t SpeakerMuteIsAvailable(bool* available) override; | 122 int32_t SpeakerMuteIsAvailable(bool* available) override; |
| 125 int32_t SetSpeakerMute(bool enable) override; | 123 int32_t SetSpeakerMute(bool enable) override; |
| 126 int32_t SpeakerMute(bool* enabled) const override; | 124 int32_t SpeakerMute(bool* enabled) const override; |
| 127 | 125 |
| 128 // Microphone mute control | 126 // Microphone mute control |
| 129 int32_t MicrophoneMuteIsAvailable(bool* available) override; | 127 int32_t MicrophoneMuteIsAvailable(bool* available) override; |
| 130 int32_t SetMicrophoneMute(bool enable) override; | 128 int32_t SetMicrophoneMute(bool enable) override; |
| 131 int32_t MicrophoneMute(bool* enabled) const override; | 129 int32_t MicrophoneMute(bool* enabled) const override; |
| 132 | 130 |
| 133 // Microphone boost control | |
| 134 int32_t MicrophoneBoostIsAvailable(bool* available) override; | |
| 135 int32_t SetMicrophoneBoost(bool enable) override; | |
| 136 int32_t MicrophoneBoost(bool* enabled) const override; | |
| 137 | |
| 138 // Stereo support | 131 // Stereo support |
| 139 int32_t StereoPlayoutIsAvailable(bool* available) const override; | 132 int32_t StereoPlayoutIsAvailable(bool* available) const override; |
| 140 int32_t SetStereoPlayout(bool enable) override; | 133 int32_t SetStereoPlayout(bool enable) override; |
| 141 int32_t StereoPlayout(bool* enabled) const override; | 134 int32_t StereoPlayout(bool* enabled) const override; |
| 142 int32_t StereoRecordingIsAvailable(bool* available) const override; | 135 int32_t StereoRecordingIsAvailable(bool* available) const override; |
| 143 int32_t SetStereoRecording(bool enable) override; | 136 int32_t SetStereoRecording(bool enable) override; |
| 144 int32_t StereoRecording(bool* enabled) const override; | 137 int32_t StereoRecording(bool* enabled) const override; |
| 145 int32_t SetRecordingChannel(const ChannelType channel) override; | 138 int32_t SetRecordingChannel(const ChannelType channel) override; |
| 146 int32_t RecordingChannel(ChannelType* channel) const override; | 139 int32_t RecordingChannel(ChannelType* channel) const override; |
| 147 | 140 |
| 148 // Delay information and control | 141 // Delay information and control |
| 149 int32_t SetPlayoutBuffer(const BufferType type, uint16_t sizeMS = 0) override; | |
| 150 int32_t PlayoutBuffer(BufferType* type, uint16_t* sizeMS) const override; | |
| 151 int32_t PlayoutDelay(uint16_t* delayMS) const override; | 142 int32_t PlayoutDelay(uint16_t* delayMS) const override; |
| 152 int32_t RecordingDelay(uint16_t* delayMS) const override; | 143 int32_t RecordingDelay(uint16_t* delayMS) const override; |
| 153 | 144 |
| 154 // CPU load | |
| 155 int32_t CPULoad(uint16_t* load) const override; | |
| 156 | |
| 157 // Recording of raw PCM data | |
| 158 int32_t StartRawOutputFileRecording( | |
| 159 const char pcmFileNameUTF8[kAdmMaxFileNameSize]) override; | |
| 160 int32_t StopRawOutputFileRecording() override; | |
| 161 int32_t StartRawInputFileRecording( | |
| 162 const char pcmFileNameUTF8[kAdmMaxFileNameSize]) override; | |
| 163 int32_t StopRawInputFileRecording() override; | |
| 164 | |
| 165 // Native sample rate controls (samples/sec) | 145 // Native sample rate controls (samples/sec) |
| 166 int32_t SetRecordingSampleRate(const uint32_t samplesPerSec) override; | 146 int32_t SetRecordingSampleRate(const uint32_t samplesPerSec) override; |
| 167 int32_t RecordingSampleRate(uint32_t* samplesPerSec) const override; | 147 int32_t RecordingSampleRate(uint32_t* samplesPerSec) const override; |
| 168 int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) override; | 148 int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) override; |
| 169 int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const override; | 149 int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const override; |
| 170 | 150 |
| 171 // Mobile device specific functions | 151 // Mobile device specific functions |
| 172 int32_t ResetAudioDevice() override; | |
| 173 int32_t SetLoudspeakerStatus(bool enable) override; | 152 int32_t SetLoudspeakerStatus(bool enable) override; |
| 174 int32_t GetLoudspeakerStatus(bool* enabled) const override; | 153 int32_t GetLoudspeakerStatus(bool* enabled) const override; |
| 175 | 154 |
| 176 bool BuiltInAECIsAvailable() const override; | 155 bool BuiltInAECIsAvailable() const override; |
| 177 int32_t EnableBuiltInAEC(bool enable) override; | 156 int32_t EnableBuiltInAEC(bool enable) override; |
| 178 bool BuiltInAGCIsAvailable() const override; | 157 bool BuiltInAGCIsAvailable() const override; |
| 179 int32_t EnableBuiltInAGC(bool enable) override; | 158 int32_t EnableBuiltInAGC(bool enable) override; |
| 180 bool BuiltInNSIsAvailable() const override; | 159 bool BuiltInNSIsAvailable() const override; |
| 181 int32_t EnableBuiltInNS(bool enable) override; | 160 int32_t EnableBuiltInNS(bool enable) override; |
| 182 | 161 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 PlatformType _platformType; | 195 PlatformType _platformType; |
| 217 bool _initialized; | 196 bool _initialized; |
| 218 mutable ErrorCode _lastError; | 197 mutable ErrorCode _lastError; |
| 219 }; | 198 }; |
| 220 | 199 |
| 221 } // namespace webrtc | 200 } // namespace webrtc |
| 222 | 201 |
| 223 #endif // defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE) | 202 #endif // defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE) |
| 224 | 203 |
| 225 #endif // WEBRTC_MODULES_INTERFACE_AUDIO_DEVICE_IMPL_H_ | 204 #endif // WEBRTC_MODULES_INTERFACE_AUDIO_DEVICE_IMPL_H_ |
| OLD | NEW |