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 |
11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_MIXER_MANAGER_MAC_H | 11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_MIXER_MANAGER_MAC_H |
12 #define WEBRTC_AUDIO_DEVICE_AUDIO_MIXER_MANAGER_MAC_H | 12 #define WEBRTC_AUDIO_DEVICE_AUDIO_MIXER_MANAGER_MAC_H |
13 | 13 |
| 14 #include "webrtc/base/criticalsection.h" |
14 #include "webrtc/modules/audio_device/include/audio_device.h" | 15 #include "webrtc/modules/audio_device/include/audio_device.h" |
15 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 16 #include "webrtc/system_wrappers/include/trace.h" |
16 #include "webrtc/typedefs.h" | 17 #include "webrtc/typedefs.h" |
17 | 18 |
18 #include <CoreAudio/CoreAudio.h> | 19 #include <CoreAudio/CoreAudio.h> |
19 | 20 |
20 namespace webrtc { | 21 namespace webrtc { |
21 | 22 |
22 class AudioMixerManagerMac { | 23 class AudioMixerManagerMac { |
23 public: | 24 public: |
24 int32_t OpenSpeaker(AudioDeviceID deviceID); | 25 int32_t OpenSpeaker(AudioDeviceID deviceID); |
25 int32_t OpenMicrophone(AudioDeviceID deviceID); | 26 int32_t OpenMicrophone(AudioDeviceID deviceID); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ~AudioMixerManagerMac(); | 58 ~AudioMixerManagerMac(); |
58 | 59 |
59 private: | 60 private: |
60 static void logCAMsg(const TraceLevel level, | 61 static void logCAMsg(const TraceLevel level, |
61 const TraceModule module, | 62 const TraceModule module, |
62 const int32_t id, | 63 const int32_t id, |
63 const char* msg, | 64 const char* msg, |
64 const char* err); | 65 const char* err); |
65 | 66 |
66 private: | 67 private: |
67 CriticalSectionWrapper& _critSect; | 68 rtc::CriticalSection _critSect; |
68 int32_t _id; | 69 int32_t _id; |
69 | 70 |
70 AudioDeviceID _inputDeviceID; | 71 AudioDeviceID _inputDeviceID; |
71 AudioDeviceID _outputDeviceID; | 72 AudioDeviceID _outputDeviceID; |
72 | 73 |
73 uint16_t _noInputChannels; | 74 uint16_t _noInputChannels; |
74 uint16_t _noOutputChannels; | 75 uint16_t _noOutputChannels; |
75 }; | 76 }; |
76 | 77 |
77 } // namespace webrtc | 78 } // namespace webrtc |
78 | 79 |
79 #endif // AUDIO_MIXER_MAC_H | 80 #endif // AUDIO_MIXER_MAC_H |
OLD | NEW |