| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual int32_t StopPlayout() = 0; | 68 virtual int32_t StopPlayout() = 0; |
| 69 virtual bool Playing() const = 0; | 69 virtual bool Playing() const = 0; |
| 70 virtual int32_t StartRecording() = 0; | 70 virtual int32_t StartRecording() = 0; |
| 71 virtual int32_t StopRecording() = 0; | 71 virtual int32_t StopRecording() = 0; |
| 72 virtual bool Recording() const = 0; | 72 virtual bool Recording() const = 0; |
| 73 | 73 |
| 74 // Microphone Automatic Gain Control (AGC) | 74 // Microphone Automatic Gain Control (AGC) |
| 75 virtual int32_t SetAGC(bool enable) = 0; | 75 virtual int32_t SetAGC(bool enable) = 0; |
| 76 virtual bool AGC() const = 0; | 76 virtual bool AGC() const = 0; |
| 77 | 77 |
| 78 // Volume control based on the Windows Wave API (Windows only) | |
| 79 virtual int32_t SetWaveOutVolume(uint16_t volumeLeft, | |
| 80 uint16_t volumeRight) = 0; | |
| 81 virtual int32_t WaveOutVolume(uint16_t& volumeLeft, | |
| 82 uint16_t& volumeRight) const = 0; | |
| 83 | |
| 84 // Audio mixer initialization | 78 // Audio mixer initialization |
| 85 virtual int32_t InitSpeaker() = 0; | 79 virtual int32_t InitSpeaker() = 0; |
| 86 virtual bool SpeakerIsInitialized() const = 0; | 80 virtual bool SpeakerIsInitialized() const = 0; |
| 87 virtual int32_t InitMicrophone() = 0; | 81 virtual int32_t InitMicrophone() = 0; |
| 88 virtual bool MicrophoneIsInitialized() const = 0; | 82 virtual bool MicrophoneIsInitialized() const = 0; |
| 89 | 83 |
| 90 // Speaker volume controls | 84 // Speaker volume controls |
| 91 virtual int32_t SpeakerVolumeIsAvailable(bool& available) = 0; | 85 virtual int32_t SpeakerVolumeIsAvailable(bool& available) = 0; |
| 92 virtual int32_t SetSpeakerVolume(uint32_t volume) = 0; | 86 virtual int32_t SetSpeakerVolume(uint32_t volume) = 0; |
| 93 virtual int32_t SpeakerVolume(uint32_t& volume) const = 0; | 87 virtual int32_t SpeakerVolume(uint32_t& volume) const = 0; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 virtual void ClearRecordingError() = 0; | 175 virtual void ClearRecordingError() = 0; |
| 182 | 176 |
| 183 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0; | 177 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0; |
| 184 | 178 |
| 185 virtual ~AudioDeviceGeneric() {} | 179 virtual ~AudioDeviceGeneric() {} |
| 186 }; | 180 }; |
| 187 | 181 |
| 188 } // namespace webrtc | 182 } // namespace webrtc |
| 189 | 183 |
| 190 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H | 184 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H |
| OLD | NEW |