OLD | NEW |
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 |
11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_WAVE_WIN_H | 11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_WAVE_WIN_H |
12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_WAVE_WIN_H | 12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_WAVE_WIN_H |
13 | 13 |
| 14 #include "webrtc/base/platform_thread.h" |
14 #include "webrtc/modules/audio_device/audio_device_generic.h" | 15 #include "webrtc/modules/audio_device/audio_device_generic.h" |
15 #include "webrtc/modules/audio_device/win/audio_mixer_manager_win.h" | 16 #include "webrtc/modules/audio_device/win/audio_mixer_manager_win.h" |
16 #include "webrtc/system_wrappers/include/thread_wrapper.h" | |
17 | 17 |
18 #pragma comment( lib, "winmm.lib" ) | 18 #pragma comment( lib, "winmm.lib" ) |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 class EventTimerWrapper; | 21 class EventTimerWrapper; |
22 class EventWrapper; | 22 class EventWrapper; |
23 | 23 |
24 const uint32_t TIMER_PERIOD_MS = 2; | 24 const uint32_t TIMER_PERIOD_MS = 2; |
25 const uint32_t REC_CHECK_TIME_PERIOD_MS = 4; | 25 const uint32_t REC_CHECK_TIME_PERIOD_MS = 4; |
26 const uint16_t REC_PUT_BACK_DELAY = 4; | 26 const uint16_t REC_PUT_BACK_DELAY = 4; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 EventTimerWrapper& _timeEvent; | 215 EventTimerWrapper& _timeEvent; |
216 EventWrapper& _recStartEvent; | 216 EventWrapper& _recStartEvent; |
217 EventWrapper& _playStartEvent; | 217 EventWrapper& _playStartEvent; |
218 | 218 |
219 HANDLE _hGetCaptureVolumeThread; | 219 HANDLE _hGetCaptureVolumeThread; |
220 HANDLE _hShutdownGetVolumeEvent; | 220 HANDLE _hShutdownGetVolumeEvent; |
221 HANDLE _hSetCaptureVolumeThread; | 221 HANDLE _hSetCaptureVolumeThread; |
222 HANDLE _hShutdownSetVolumeEvent; | 222 HANDLE _hShutdownSetVolumeEvent; |
223 HANDLE _hSetCaptureVolumeEvent; | 223 HANDLE _hSetCaptureVolumeEvent; |
224 | 224 |
225 rtc::scoped_ptr<ThreadWrapper> _ptrThread; | 225 rtc::scoped_ptr<PlatformThread> _ptrThread; |
226 | 226 |
227 CriticalSectionWrapper& _critSectCb; | 227 CriticalSectionWrapper& _critSectCb; |
228 | 228 |
229 int32_t _id; | 229 int32_t _id; |
230 | 230 |
231 AudioMixerManager _mixerManager; | 231 AudioMixerManager _mixerManager; |
232 | 232 |
233 bool _usingInputDeviceIndex; | 233 bool _usingInputDeviceIndex; |
234 bool _usingOutputDeviceIndex; | 234 bool _usingOutputDeviceIndex; |
235 AudioDeviceModule::WindowsDeviceType _inputDevice; | 235 AudioDeviceModule::WindowsDeviceType _inputDevice; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 uint16_t _recError; | 331 uint16_t _recError; |
332 | 332 |
333 uint32_t _newMicLevel; | 333 uint32_t _newMicLevel; |
334 uint32_t _minMicVolume; | 334 uint32_t _minMicVolume; |
335 uint32_t _maxMicVolume; | 335 uint32_t _maxMicVolume; |
336 }; | 336 }; |
337 | 337 |
338 } // namespace webrtc | 338 } // namespace webrtc |
339 | 339 |
340 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_WAVE_WIN_H | 340 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_WAVE_WIN_H |
OLD | NEW |