OLD | NEW |
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const; | 47 int32_t MaxMicrophoneVolume(uint32_t& maxVolume) const; |
48 int32_t MinMicrophoneVolume(uint32_t& minVolume) const; | 48 int32_t MinMicrophoneVolume(uint32_t& minVolume) const; |
49 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const; | 49 int32_t MicrophoneVolumeStepSize(uint16_t& stepSize) const; |
50 int32_t Close(); | 50 int32_t Close(); |
51 int32_t CloseSpeaker(); | 51 int32_t CloseSpeaker(); |
52 int32_t CloseMicrophone(); | 52 int32_t CloseMicrophone(); |
53 bool SpeakerIsInitialized() const; | 53 bool SpeakerIsInitialized() const; |
54 bool MicrophoneIsInitialized() const; | 54 bool MicrophoneIsInitialized() const; |
55 | 55 |
56 public: | 56 public: |
57 AudioMixerManagerLinuxALSA(const int32_t id); | 57 AudioMixerManagerLinuxALSA(); |
58 ~AudioMixerManagerLinuxALSA(); | 58 ~AudioMixerManagerLinuxALSA(); |
59 | 59 |
60 private: | 60 private: |
61 int32_t LoadMicMixerElement() const; | 61 int32_t LoadMicMixerElement() const; |
62 int32_t LoadSpeakerMixerElement() const; | 62 int32_t LoadSpeakerMixerElement() const; |
63 void GetControlName(char *controlName, char* deviceName) const; | 63 void GetControlName(char *controlName, char* deviceName) const; |
64 | 64 |
65 private: | 65 private: |
66 rtc::CriticalSection _critSect; | 66 rtc::CriticalSection _critSect; |
67 int32_t _id; | |
68 mutable snd_mixer_t* _outputMixerHandle; | 67 mutable snd_mixer_t* _outputMixerHandle; |
69 char _outputMixerStr[kAdmMaxDeviceNameSize]; | 68 char _outputMixerStr[kAdmMaxDeviceNameSize]; |
70 mutable snd_mixer_t* _inputMixerHandle; | 69 mutable snd_mixer_t* _inputMixerHandle; |
71 char _inputMixerStr[kAdmMaxDeviceNameSize]; | 70 char _inputMixerStr[kAdmMaxDeviceNameSize]; |
72 mutable snd_mixer_elem_t* _outputMixerElement; | 71 mutable snd_mixer_elem_t* _outputMixerElement; |
73 mutable snd_mixer_elem_t* _inputMixerElement; | 72 mutable snd_mixer_elem_t* _inputMixerElement; |
74 }; | 73 }; |
75 | 74 |
76 } | 75 } |
77 | 76 |
78 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_MIXER_MANAGER_ALSA_LINUX
_H_ | 77 #endif // MODULES_AUDIO_DEVICE_MAIN_SOURCE_LINUX_AUDIO_MIXER_MANAGER_ALSA_LINUX
_H_ |
OLD | NEW |