blob: c8012280822de22f55913ca444bf884f42cff341 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
tommi@webrtc.org851becd2012-04-04 14:57:19 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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
niklase@google.com470e71d2011-07-07 08:21:25 +000016#include "shared_data.h"
17
18namespace webrtc
19{
20class CpuWrapper;
21
tommi@webrtc.orga990e122012-04-26 15:28:22 +000022class VoEHardwareImpl: public VoEHardware
niklase@google.com470e71d2011-07-07 08:21:25 +000023{
24public:
niklase@google.com470e71d2011-07-07 08:21:25 +000025 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
andrew@webrtc.orga3c6d612011-09-13 17:17:49 +000065 virtual int EnableBuiltInAEC(bool enable);
66 virtual bool BuiltInAECIsEnabled() const;
67
niklase@google.com470e71d2011-07-07 08:21:25 +000068protected:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000069 VoEHardwareImpl(voe::SharedData* shared);
niklase@google.com470e71d2011-07-07 08:21:25 +000070 virtual ~VoEHardwareImpl();
71
72private:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000073 CpuWrapper* _cpu;
74 voe::SharedData* _shared;
niklase@google.com470e71d2011-07-07 08:21:25 +000075};
76
77} // namespace webrtc
78
79#endif // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H