Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_device / ios / audio_device_utility_ios.h
1 /*
2  *  Copyright (c) 2012 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 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_IOS_H
12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_IOS_H
13
14 #include "webrtc/modules/audio_device/audio_device_utility.h"
15 #include "webrtc/modules/audio_device/include/audio_device.h"
16
17 namespace webrtc {
18 class CriticalSectionWrapper;
19
20 class AudioDeviceUtilityIOS: public AudioDeviceUtility {
21  public:
22     AudioDeviceUtilityIOS(const int32_t id);
23     AudioDeviceUtilityIOS();
24     virtual ~AudioDeviceUtilityIOS();
25
26     virtual int32_t Init();
27
28  private:
29     CriticalSectionWrapper& _critSect;
30     int32_t _id;
31     AudioDeviceModule::ErrorCode _lastError;
32 };
33
34 }  // namespace webrtc
35
36 #endif  // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_UTILITY_IOS_H