blob: ca1cf56831a016c14fe8b9fe40435bc120e01d06 [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
pbos@webrtc.org956aa7e2013-05-21 13:52:32 +000014#include "webrtc/voice_engine/include/voe_hardware.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000015
pbos@webrtc.org956aa7e2013-05-21 13:52:32 +000016#include "webrtc/voice_engine/shared_data.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000017
18namespace webrtc
19{
niklase@google.com470e71d2011-07-07 08:21:25 +000020
tommi@webrtc.orga990e122012-04-26 15:28:22 +000021class VoEHardwareImpl: public VoEHardware
niklase@google.com470e71d2011-07-07 08:21:25 +000022{
23public:
niklase@google.com470e71d2011-07-07 08:21:25 +000024 virtual int GetNumOfRecordingDevices(int& devices);
25
26 virtual int GetNumOfPlayoutDevices(int& devices);
27
28 virtual int GetRecordingDeviceName(int index,
29 char strNameUTF8[128],
30 char strGuidUTF8[128]);
31
32 virtual int GetPlayoutDeviceName(int index,
33 char strNameUTF8[128],
34 char strGuidUTF8[128]);
35
niklase@google.com470e71d2011-07-07 08:21:25 +000036 virtual int SetRecordingDevice(
37 int index,
38 StereoChannel recordingChannel = kStereoBoth);
39
40 virtual int SetPlayoutDevice(int index);
41
42 virtual int SetAudioDeviceLayer(AudioLayers audioLayer);
43
44 virtual int GetAudioDeviceLayer(AudioLayers& audioLayer);
45
leozwang@webrtc.org96bcac82012-12-04 19:11:55 +000046 virtual int SetRecordingSampleRate(unsigned int samples_per_sec);
47 virtual int RecordingSampleRate(unsigned int* samples_per_sec) const;
48 virtual int SetPlayoutSampleRate(unsigned int samples_per_sec);
49 virtual int PlayoutSampleRate(unsigned int* samples_per_sec) const;
50
henrika@webrtc.orga954c072014-12-09 16:22:09 +000051 virtual bool BuiltInAECIsAvailable() const;
52 virtual int EnableBuiltInAEC(bool enable);
53
niklase@google.com470e71d2011-07-07 08:21:25 +000054protected:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000055 VoEHardwareImpl(voe::SharedData* shared);
niklase@google.com470e71d2011-07-07 08:21:25 +000056 virtual ~VoEHardwareImpl();
57
58private:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000059 voe::SharedData* _shared;
niklase@google.com470e71d2011-07-07 08:21:25 +000060};
61
pbos@webrtc.orgd900e8b2013-07-03 15:12:26 +000062} // namespace webrtc
niklase@google.com470e71d2011-07-07 08:21:25 +000063
64#endif // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H