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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 virtual int32_t StopPlayout(); | 126 virtual int32_t StopPlayout(); |
127 virtual bool Playing() const; | 127 virtual bool Playing() const; |
128 virtual int32_t StartRecording(); | 128 virtual int32_t StartRecording(); |
129 virtual int32_t StopRecording(); | 129 virtual int32_t StopRecording(); |
130 virtual bool Recording() const; | 130 virtual bool Recording() const; |
131 | 131 |
132 // Microphone Automatic Gain Control (AGC) | 132 // Microphone Automatic Gain Control (AGC) |
133 virtual int32_t SetAGC(bool enable); | 133 virtual int32_t SetAGC(bool enable); |
134 virtual bool AGC() const; | 134 virtual bool AGC() const; |
135 | 135 |
136 // Volume control based on the Windows Wave API (Windows only) | |
137 virtual int32_t SetWaveOutVolume(uint16_t volumeLeft, uint16_t volumeRight); | |
138 virtual int32_t WaveOutVolume(uint16_t& volumeLeft, uint16_t& volumeRight) c
onst; | |
139 | |
140 // Audio mixer initialization | 136 // Audio mixer initialization |
141 virtual int32_t InitSpeaker(); | 137 virtual int32_t InitSpeaker(); |
142 virtual bool SpeakerIsInitialized() const; | 138 virtual bool SpeakerIsInitialized() const; |
143 virtual int32_t InitMicrophone(); | 139 virtual int32_t InitMicrophone(); |
144 virtual bool MicrophoneIsInitialized() const; | 140 virtual bool MicrophoneIsInitialized() const; |
145 | 141 |
146 // Speaker volume controls | 142 // Speaker volume controls |
147 virtual int32_t SpeakerVolumeIsAvailable(bool& available); | 143 virtual int32_t SpeakerVolumeIsAvailable(bool& available); |
148 virtual int32_t SetSpeakerVolume(uint32_t volume); | 144 virtual int32_t SetSpeakerVolume(uint32_t volume); |
149 virtual int32_t SpeakerVolume(uint32_t& volume) const; | 145 virtual int32_t SpeakerVolume(uint32_t& volume) const; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 uint16_t _newMicLevel; | 358 uint16_t _newMicLevel; |
363 | 359 |
364 mutable char _str[512]; | 360 mutable char _str[512]; |
365 }; | 361 }; |
366 | 362 |
367 #endif // #if (_MSC_VER >= 1400) | 363 #endif // #if (_MSC_VER >= 1400) |
368 | 364 |
369 } // namespace webrtc | 365 } // namespace webrtc |
370 | 366 |
371 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ | 367 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_CORE_WIN_H_ |
OLD | NEW |