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

Side by Side Diff: webrtc/modules/audio_device/linux/audio_mixer_manager_pulse_linux.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) 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 19 matching lines...) Expand all
30 { 30 {
31 public: 31 public:
32 int32_t SetPlayStream(pa_stream* playStream); 32 int32_t SetPlayStream(pa_stream* playStream);
33 int32_t SetRecStream(pa_stream* recStream); 33 int32_t SetRecStream(pa_stream* recStream);
34 int32_t OpenSpeaker(uint16_t deviceIndex); 34 int32_t OpenSpeaker(uint16_t deviceIndex);
35 int32_t OpenMicrophone(uint16_t deviceIndex); 35 int32_t OpenMicrophone(uint16_t deviceIndex);
36 int32_t SetSpeakerVolume(uint32_t volume); 36 int32_t SetSpeakerVolume(uint32_t volume);
37 int32_t SpeakerVolume(uint32_t& volume) const; 37 int32_t SpeakerVolume(uint32_t& volume) const;
38 int32_t MaxSpeakerVolume(uint32_t& maxVolume) const; 38 int32_t MaxSpeakerVolume(uint32_t& maxVolume) const;
39 int32_t MinSpeakerVolume(uint32_t& minVolume) const; 39 int32_t MinSpeakerVolume(uint32_t& minVolume) const;
40 int32_t SpeakerVolumeStepSize(uint16_t& stepSize) const;
41 int32_t SpeakerVolumeIsAvailable(bool& available); 40 int32_t SpeakerVolumeIsAvailable(bool& available);
42 int32_t SpeakerMuteIsAvailable(bool& available); 41 int32_t SpeakerMuteIsAvailable(bool& available);
43 int32_t SetSpeakerMute(bool enable); 42 int32_t SetSpeakerMute(bool enable);
44 int32_t StereoPlayoutIsAvailable(bool& available); 43 int32_t StereoPlayoutIsAvailable(bool& available);
45 int32_t StereoRecordingIsAvailable(bool& available); 44 int32_t StereoRecordingIsAvailable(bool& available);
46 int32_t SpeakerMute(bool& enabled) const; 45 int32_t SpeakerMute(bool& enabled) const;
47 int32_t MicrophoneMuteIsAvailable(bool& available); 46 int32_t MicrophoneMuteIsAvailable(bool& available);
48 int32_t SetMicrophoneMute(bool enable); 47 int32_t SetMicrophoneMute(bool enable);
49 int32_t MicrophoneMute(bool& enabled) const; 48 int32_t MicrophoneMute(bool& enabled) const;
50 int32_t MicrophoneBoostIsAvailable(bool& available);
51 int32_t SetMicrophoneBoost(bool enable);
52 int32_t MicrophoneBoost(bool& enabled) const;
53 int32_t MicrophoneVolumeIsAvailable(bool& available); 49 int32_t MicrophoneVolumeIsAvailable(bool& available);
54 int32_t SetMicrophoneVolume(uint32_t volume); 50 int32_t SetMicrophoneVolume(uint32_t volume);
55 int32_t MicrophoneVolume(uint32_t& volume) const; 51 int32_t MicrophoneVolume(uint32_t& volume) const;
56 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const; 52 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const;
57 int32_t MinMicrophoneVolume(uint32_t& minVolume) const; 53 int32_t MinMicrophoneVolume(uint32_t& minVolume) const;
58 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const;
59 int32_t SetPulseAudioObjects(pa_threaded_mainloop* mainloop, 54 int32_t SetPulseAudioObjects(pa_threaded_mainloop* mainloop,
60 pa_context* context); 55 pa_context* context);
61 int32_t Close(); 56 int32_t Close();
62 int32_t CloseSpeaker(); 57 int32_t CloseSpeaker();
63 int32_t CloseMicrophone(); 58 int32_t CloseMicrophone();
64 bool SpeakerIsInitialized() const; 59 bool SpeakerIsInitialized() const;
65 bool MicrophoneIsInitialized() const; 60 bool MicrophoneIsInitialized() const;
66 61
67 public: 62 public:
68 AudioMixerManagerLinuxPulse(); 63 AudioMixerManagerLinuxPulse();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Stores thread ID in constructor. 104 // Stores thread ID in constructor.
110 // We can then use ThreadChecker::CalledOnValidThread() to ensure that 105 // We can then use ThreadChecker::CalledOnValidThread() to ensure that
111 // other methods are called from the same thread. 106 // other methods are called from the same thread.
112 // Currently only does RTC_DCHECK(thread_checker_.CalledOnValidThread()). 107 // Currently only does RTC_DCHECK(thread_checker_.CalledOnValidThread()).
113 rtc::ThreadChecker thread_checker_; 108 rtc::ThreadChecker thread_checker_;
114 }; 109 };
115 110
116 } 111 }
117 112
118 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_MIXER_MANAGER_PULSE_LINU X_H_ 113 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_MIXER_MANAGER_PULSE_LINU X_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698