1470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com/*
2851becd00ce814f0e02a5c5a56ac0322a7f9494dtommi@webrtc.org *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com *
4470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com *  Use of this source code is governed by a BSD-style license
5470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com *  that can be found in the LICENSE file in the root of the source
6470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com *  tree. An additional intellectual property rights grant can be found
7470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com *  in the file PATENTS.  All contributing project authors may
8470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com *  be found in the AUTHORS file in the root of the source tree.
9470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com */
10470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
11470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com#ifndef WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
12470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com#define WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
13470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
14956aa7e0874f2e08c335a82a2c32f400fac8b031pbos@webrtc.org#include "webrtc/voice_engine/include/voe_hardware.h"
15470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
16956aa7e0874f2e08c335a82a2c32f400fac8b031pbos@webrtc.org#include "webrtc/voice_engine/shared_data.h"
17470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
180d266054acece70259fc1e85026194154f41e5a0Jelena Marusicnamespace webrtc {
19470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
200d266054acece70259fc1e85026194154f41e5a0Jelena Marusicclass VoEHardwareImpl : public VoEHardware {
210d266054acece70259fc1e85026194154f41e5a0Jelena Marusic public:
220d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int GetNumOfRecordingDevices(int& devices) override;
23470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
240d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int GetNumOfPlayoutDevices(int& devices) override;
25470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
260d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int GetRecordingDeviceName(int index,
270d266054acece70259fc1e85026194154f41e5a0Jelena Marusic                             char strNameUTF8[128],
280d266054acece70259fc1e85026194154f41e5a0Jelena Marusic                             char strGuidUTF8[128]) override;
29470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
300d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int GetPlayoutDeviceName(int index,
310d266054acece70259fc1e85026194154f41e5a0Jelena Marusic                           char strNameUTF8[128],
320d266054acece70259fc1e85026194154f41e5a0Jelena Marusic                           char strGuidUTF8[128]) override;
33470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
340d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int SetRecordingDevice(int index,
350d266054acece70259fc1e85026194154f41e5a0Jelena Marusic                         StereoChannel recordingChannel = kStereoBoth) override;
36470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
370d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int SetPlayoutDevice(int index) override;
38470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
390d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int SetAudioDeviceLayer(AudioLayers audioLayer) override;
40470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
410d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int GetAudioDeviceLayer(AudioLayers& audioLayer) override;
42470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
430d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int SetRecordingSampleRate(unsigned int samples_per_sec) override;
440d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int RecordingSampleRate(unsigned int* samples_per_sec) const override;
450d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int SetPlayoutSampleRate(unsigned int samples_per_sec) override;
460d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int PlayoutSampleRate(unsigned int* samples_per_sec) const override;
4796bcac8fbbb32108f4be4281fec99cb621cb818aleozwang@webrtc.org
480d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  bool BuiltInAECIsAvailable() const override;
490d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  int EnableBuiltInAEC(bool enable) override;
50c14f5ff60fb0c42c97702de112a9e8f1eccba574henrika  bool BuiltInAGCIsAvailable() const override;
51c14f5ff60fb0c42c97702de112a9e8f1eccba574henrika  int EnableBuiltInAGC(bool enable) override;
52c14f5ff60fb0c42c97702de112a9e8f1eccba574henrika  bool BuiltInNSIsAvailable() const override;
53c14f5ff60fb0c42c97702de112a9e8f1eccba574henrika  int EnableBuiltInNS(bool enable) override;
54a954c07ee1c93175e6ebbeb20517b347474362aehenrika@webrtc.org
550d266054acece70259fc1e85026194154f41e5a0Jelena Marusic protected:
560d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  VoEHardwareImpl(voe::SharedData* shared);
570d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  ~VoEHardwareImpl() override;
58470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
590d266054acece70259fc1e85026194154f41e5a0Jelena Marusic private:
600d266054acece70259fc1e85026194154f41e5a0Jelena Marusic  voe::SharedData* _shared;
61470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com};
62470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
63d900e8bea84c474696bf0219aed1353ce65ffd8epbos@webrtc.org}  // namespace webrtc
64470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com
65470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com#endif  // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
66