blob: c8012280822de22f55913ca444bf884f42cff341 [file] [log] [blame]
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +00001/*
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_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
12#define WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
13
14#include "voe_hardware.h"
15
16#include "shared_data.h"
17
18namespace webrtc
19{
20class CpuWrapper;
21
22class VoEHardwareImpl: public VoEHardware
23{
24public:
25 virtual int GetNumOfRecordingDevices(int& devices);
26
27 virtual int GetNumOfPlayoutDevices(int& devices);
28
29 virtual int GetRecordingDeviceName(int index,
30 char strNameUTF8[128],
31 char strGuidUTF8[128]);
32
33 virtual int GetPlayoutDeviceName(int index,
34 char strNameUTF8[128],
35 char strGuidUTF8[128]);
36
37 virtual int GetRecordingDeviceStatus(bool& isAvailable);
38
39 virtual int GetPlayoutDeviceStatus(bool& isAvailable);
40
41 virtual int SetRecordingDevice(
42 int index,
43 StereoChannel recordingChannel = kStereoBoth);
44
45 virtual int SetPlayoutDevice(int index);
46
47 virtual int SetAudioDeviceLayer(AudioLayers audioLayer);
48
49 virtual int GetAudioDeviceLayer(AudioLayers& audioLayer);
50
51 virtual int GetCPULoad(int& loadPercent);
52
53 virtual int GetSystemCPULoad(int& loadPercent);
54
55 virtual int ResetAudioDevice();
56
57 virtual int AudioDeviceControl(unsigned int par1,
58 unsigned int par2,
59 unsigned int par3);
60
61 virtual int SetLoudspeakerStatus(bool enable);
62
63 virtual int GetLoudspeakerStatus(bool& enabled);
64
65 virtual int EnableBuiltInAEC(bool enable);
66 virtual bool BuiltInAECIsEnabled() const;
67
68protected:
69 VoEHardwareImpl(voe::SharedData* shared);
70 virtual ~VoEHardwareImpl();
71
72private:
73 CpuWrapper* _cpu;
74 voe::SharedData* _shared;
75};
76
77} // namespace webrtc
78
79#endif // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H