1 /* 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 /* 12 * Android audio device utility interface 13 */ 14 15 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_ANDROID_H 16 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_ANDROID_H 17 18 #include "webrtc/modules/audio_device/audio_device_utility.h" 19 #include "webrtc/modules/audio_device/include/audio_device.h" 20 21 namespace webrtc 22 { 23 class CriticalSectionWrapper; 24 25 class AudioDeviceUtilityAndroid: public AudioDeviceUtility 26 { 27 public: 28 AudioDeviceUtilityAndroid(const int32_t id); 29 ~AudioDeviceUtilityAndroid(); 30 31 virtual int32_t Init(); 32 33 private: 34 CriticalSectionWrapper& _critSect; 35 int32_t _id; 36 }; 37 38 } // namespace webrtc 39 40 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_ANDROID_H 41