| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 int32_t StopPlayout() override; | 91 int32_t StopPlayout() override; |
| 92 bool Playing() const override; | 92 bool Playing() const override; |
| 93 int32_t StartRecording() override; | 93 int32_t StartRecording() override; |
| 94 int32_t StopRecording() override; | 94 int32_t StopRecording() override; |
| 95 bool Recording() const override; | 95 bool Recording() const override; |
| 96 | 96 |
| 97 // Microphone Automatic Gain Control (AGC) | 97 // Microphone Automatic Gain Control (AGC) |
| 98 int32_t SetAGC(bool enable) override; | 98 int32_t SetAGC(bool enable) override; |
| 99 bool AGC() const override; | 99 bool AGC() const override; |
| 100 | 100 |
| 101 // Volume control based on the Windows Wave API (Windows only) | |
| 102 int32_t SetWaveOutVolume(uint16_t volumeLeft, uint16_t volumeRight) override; | |
| 103 int32_t WaveOutVolume(uint16_t* volumeLeft, | |
| 104 uint16_t* volumeRight) const override; | |
| 105 | |
| 106 // Audio mixer initialization | 101 // Audio mixer initialization |
| 107 int32_t InitSpeaker() override; | 102 int32_t InitSpeaker() override; |
| 108 bool SpeakerIsInitialized() const override; | 103 bool SpeakerIsInitialized() const override; |
| 109 int32_t InitMicrophone() override; | 104 int32_t InitMicrophone() override; |
| 110 bool MicrophoneIsInitialized() const override; | 105 bool MicrophoneIsInitialized() const override; |
| 111 | 106 |
| 112 // Speaker volume controls | 107 // Speaker volume controls |
| 113 int32_t SpeakerVolumeIsAvailable(bool* available) override; | 108 int32_t SpeakerVolumeIsAvailable(bool* available) override; |
| 114 int32_t SetSpeakerVolume(uint32_t volume) override; | 109 int32_t SetSpeakerVolume(uint32_t volume) override; |
| 115 int32_t SpeakerVolume(uint32_t* volume) const override; | 110 int32_t SpeakerVolume(uint32_t* volume) const override; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 PlatformType _platformType; | 216 PlatformType _platformType; |
| 222 bool _initialized; | 217 bool _initialized; |
| 223 mutable ErrorCode _lastError; | 218 mutable ErrorCode _lastError; |
| 224 }; | 219 }; |
| 225 | 220 |
| 226 } // namespace webrtc | 221 } // namespace webrtc |
| 227 | 222 |
| 228 #endif // defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE) | 223 #endif // defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE) |
| 229 | 224 |
| 230 #endif // WEBRTC_MODULES_INTERFACE_AUDIO_DEVICE_IMPL_H_ | 225 #endif // WEBRTC_MODULES_INTERFACE_AUDIO_DEVICE_IMPL_H_ |
| OLD | NEW |