blob: 1ec1c90312a06b2ad6f5a22fe422ee6c0f78c022 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:251/*
tommi@webrtc.org851becd2012-04-04 14:57:192 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:253 *
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:3214#include "webrtc/voice_engine/include/voe_hardware.h"
niklase@google.com470e71d2011-07-07 08:21:2515
pbos@webrtc.org956aa7e2013-05-21 13:52:3216#include "webrtc/voice_engine/shared_data.h"
niklase@google.com470e71d2011-07-07 08:21:2517
Jelena Marusic0d266052015-05-04 12:15:3218namespace webrtc {
niklase@google.com470e71d2011-07-07 08:21:2519
Jelena Marusic0d266052015-05-04 12:15:3220class VoEHardwareImpl : public VoEHardware {
21 public:
22 int GetNumOfRecordingDevices(int& devices) override;
niklase@google.com470e71d2011-07-07 08:21:2523
Jelena Marusic0d266052015-05-04 12:15:3224 int GetNumOfPlayoutDevices(int& devices) override;
niklase@google.com470e71d2011-07-07 08:21:2525
Jelena Marusic0d266052015-05-04 12:15:3226 int GetRecordingDeviceName(int index,
27 char strNameUTF8[128],
28 char strGuidUTF8[128]) override;
niklase@google.com470e71d2011-07-07 08:21:2529
Jelena Marusic0d266052015-05-04 12:15:3230 int GetPlayoutDeviceName(int index,
31 char strNameUTF8[128],
32 char strGuidUTF8[128]) override;
niklase@google.com470e71d2011-07-07 08:21:2533
Jelena Marusic0d266052015-05-04 12:15:3234 int SetRecordingDevice(int index,
35 StereoChannel recordingChannel = kStereoBoth) override;
niklase@google.com470e71d2011-07-07 08:21:2536
Jelena Marusic0d266052015-05-04 12:15:3237 int SetPlayoutDevice(int index) override;
niklase@google.com470e71d2011-07-07 08:21:2538
Jelena Marusic0d266052015-05-04 12:15:3239 int SetAudioDeviceLayer(AudioLayers audioLayer) override;
niklase@google.com470e71d2011-07-07 08:21:2540
Jelena Marusic0d266052015-05-04 12:15:3241 int GetAudioDeviceLayer(AudioLayers& audioLayer) override;
niklase@google.com470e71d2011-07-07 08:21:2542
Jelena Marusic0d266052015-05-04 12:15:3243 int SetRecordingSampleRate(unsigned int samples_per_sec) override;
44 int RecordingSampleRate(unsigned int* samples_per_sec) const override;
45 int SetPlayoutSampleRate(unsigned int samples_per_sec) override;
46 int PlayoutSampleRate(unsigned int* samples_per_sec) const override;
leozwang@webrtc.org96bcac82012-12-04 19:11:5547
Jelena Marusic0d266052015-05-04 12:15:3248 bool BuiltInAECIsAvailable() const override;
49 int EnableBuiltInAEC(bool enable) override;
henrikac14f5ff2015-09-23 12:08:3350 bool BuiltInAGCIsAvailable() const override;
51 int EnableBuiltInAGC(bool enable) override;
52 bool BuiltInNSIsAvailable() const override;
53 int EnableBuiltInNS(bool enable) override;
henrika@webrtc.orga954c072014-12-09 16:22:0954
Jelena Marusic0d266052015-05-04 12:15:3255 protected:
56 VoEHardwareImpl(voe::SharedData* shared);
57 ~VoEHardwareImpl() override;
niklase@google.com470e71d2011-07-07 08:21:2558
Jelena Marusic0d266052015-05-04 12:15:3259 private:
60 voe::SharedData* _shared;
niklase@google.com470e71d2011-07-07 08:21:2561};
62
pbos@webrtc.orgd900e8b2013-07-03 15:12:2663} // namespace webrtc
niklase@google.com470e71d2011-07-07 08:21:2564
65#endif // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H