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

Side by Side Diff: webrtc/modules/audio_device/mac/audio_device_mac.h

Issue 3006793002: Removes unused WaveOut APIs from ADM (Closed)
Patch Set: 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual int32_t StopPlayout(); 104 virtual int32_t StopPlayout();
105 virtual bool Playing() const; 105 virtual bool Playing() const;
106 virtual int32_t StartRecording(); 106 virtual int32_t StartRecording();
107 virtual int32_t StopRecording(); 107 virtual int32_t StopRecording();
108 virtual bool Recording() const; 108 virtual bool Recording() const;
109 109
110 // Microphone Automatic Gain Control (AGC) 110 // Microphone Automatic Gain Control (AGC)
111 virtual int32_t SetAGC(bool enable); 111 virtual int32_t SetAGC(bool enable);
112 virtual bool AGC() const; 112 virtual bool AGC() const;
113 113
114 // Volume control based on the Windows Wave API (Windows only)
115 virtual int32_t SetWaveOutVolume(uint16_t volumeLeft, uint16_t volumeRight);
116 virtual int32_t WaveOutVolume(uint16_t& volumeLeft,
117 uint16_t& volumeRight) const;
118
119 // Audio mixer initialization 114 // Audio mixer initialization
120 virtual int32_t InitSpeaker(); 115 virtual int32_t InitSpeaker();
121 virtual bool SpeakerIsInitialized() const; 116 virtual bool SpeakerIsInitialized() const;
122 virtual int32_t InitMicrophone(); 117 virtual int32_t InitMicrophone();
123 virtual bool MicrophoneIsInitialized() const; 118 virtual bool MicrophoneIsInitialized() const;
124 119
125 // Speaker volume controls 120 // Speaker volume controls
126 virtual int32_t SpeakerVolumeIsAvailable(bool& available); 121 virtual int32_t SpeakerVolumeIsAvailable(bool& available);
127 virtual int32_t SetSpeakerVolume(uint32_t volume); 122 virtual int32_t SetSpeakerVolume(uint32_t volume);
128 virtual int32_t SpeakerVolume(uint32_t& volume) const; 123 virtual int32_t SpeakerVolume(uint32_t& volume) const;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // Typing detection 368 // Typing detection
374 // 0x5c is key "9", after that comes function keys. 369 // 0x5c is key "9", after that comes function keys.
375 bool prev_key_state_[0x5d]; 370 bool prev_key_state_[0x5d];
376 371
377 int get_mic_volume_counter_ms_; 372 int get_mic_volume_counter_ms_;
378 }; 373 };
379 374
380 } // namespace webrtc 375 } // namespace webrtc
381 376
382 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_MAC_AUDIO_DEVICE_MAC_H_ 377 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_MAC_AUDIO_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698