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

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

Issue 3006803002: Removes unused APIs from the ADM (part II) (Closed)
Patch Set: nit 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 10 matching lines...) Expand all
21 namespace webrtc { 21 namespace webrtc {
22 22
23 class AudioMixerManagerMac { 23 class AudioMixerManagerMac {
24 public: 24 public:
25 int32_t OpenSpeaker(AudioDeviceID deviceID); 25 int32_t OpenSpeaker(AudioDeviceID deviceID);
26 int32_t OpenMicrophone(AudioDeviceID deviceID); 26 int32_t OpenMicrophone(AudioDeviceID deviceID);
27 int32_t SetSpeakerVolume(uint32_t volume); 27 int32_t SetSpeakerVolume(uint32_t volume);
28 int32_t SpeakerVolume(uint32_t& volume) const; 28 int32_t SpeakerVolume(uint32_t& volume) const;
29 int32_t MaxSpeakerVolume(uint32_t& maxVolume) const; 29 int32_t MaxSpeakerVolume(uint32_t& maxVolume) const;
30 int32_t MinSpeakerVolume(uint32_t& minVolume) const; 30 int32_t MinSpeakerVolume(uint32_t& minVolume) const;
31 int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const;
32 int32_t SpeakerVolumeIsAvailable(bool& available); 31 int32_t SpeakerVolumeIsAvailable(bool& available);
33 int32_t SpeakerMuteIsAvailable(bool& available); 32 int32_t SpeakerMuteIsAvailable(bool& available);
34 int32_t SetSpeakerMute(bool enable); 33 int32_t SetSpeakerMute(bool enable);
35 int32_t SpeakerMute(bool& enabled) const; 34 int32_t SpeakerMute(bool& enabled) const;
36 int32_t StereoPlayoutIsAvailable(bool& available); 35 int32_t StereoPlayoutIsAvailable(bool& available);
37 int32_t StereoRecordingIsAvailable(bool& available); 36 int32_t StereoRecordingIsAvailable(bool& available);
38 int32_t MicrophoneMuteIsAvailable(bool& available); 37 int32_t MicrophoneMuteIsAvailable(bool& available);
39 int32_t SetMicrophoneMute(bool enable); 38 int32_t SetMicrophoneMute(bool enable);
40 int32_t MicrophoneMute(bool& enabled) const; 39 int32_t MicrophoneMute(bool& enabled) const;
41 int32_t MicrophoneBoostIsAvailable(bool& available);
42 int32_t SetMicrophoneBoost(bool enable);
43 int32_t MicrophoneBoost(bool& enabled) const;
44 int32_t MicrophoneVolumeIsAvailable(bool& available); 40 int32_t MicrophoneVolumeIsAvailable(bool& available);
45 int32_t SetMicrophoneVolume(uint32_t volume); 41 int32_t SetMicrophoneVolume(uint32_t volume);
46 int32_t MicrophoneVolume(uint32_t& volume) const; 42 int32_t MicrophoneVolume(uint32_t& volume) const;
47 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const; 43 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const;
48 int32_t MinMicrophoneVolume(uint32_t& minVolume) const; 44 int32_t MinMicrophoneVolume(uint32_t& minVolume) const;
49 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const;
50 int32_t Close(); 45 int32_t Close();
51 int32_t CloseSpeaker(); 46 int32_t CloseSpeaker();
52 int32_t CloseMicrophone(); 47 int32_t CloseMicrophone();
53 bool SpeakerIsInitialized() const; 48 bool SpeakerIsInitialized() const;
54 bool MicrophoneIsInitialized() const; 49 bool MicrophoneIsInitialized() const;
55 50
56 public: 51 public:
57 AudioMixerManagerMac(); 52 AudioMixerManagerMac();
58 ~AudioMixerManagerMac(); 53 ~AudioMixerManagerMac();
59 54
60 private: 55 private:
61 static void logCAMsg(const rtc::LoggingSeverity sev, 56 static void logCAMsg(const rtc::LoggingSeverity sev,
62 const char* msg, 57 const char* msg,
63 const char* err); 58 const char* err);
64 59
65 private: 60 private:
66 rtc::CriticalSection _critSect; 61 rtc::CriticalSection _critSect;
67 62
68 AudioDeviceID _inputDeviceID; 63 AudioDeviceID _inputDeviceID;
69 AudioDeviceID _outputDeviceID; 64 AudioDeviceID _outputDeviceID;
70 65
71 uint16_t _noInputChannels; 66 uint16_t _noInputChannels;
72 uint16_t _noOutputChannels; 67 uint16_t _noOutputChannels;
73 }; 68 };
74 69
75 } // namespace webrtc 70 } // namespace webrtc
76 71
77 #endif // AUDIO_MIXER_MAC_H 72 #endif // AUDIO_MIXER_MAC_H
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/mac/audio_device_mac.cc ('k') | webrtc/modules/audio_device/mac/audio_mixer_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698