2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-04-04 14:57:19 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
|
|
|
|
|
#define WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
|
|
|
|
|
|
2013-05-21 13:52:32 +00:00
|
|
|
#include "webrtc/voice_engine/include/voe_hardware.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2013-05-21 13:52:32 +00:00
|
|
|
#include "webrtc/voice_engine/shared_data.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
namespace webrtc {
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
class VoEHardwareImpl : public VoEHardware {
|
|
|
|
|
public:
|
|
|
|
|
int GetNumOfRecordingDevices(int& devices) override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
int GetNumOfPlayoutDevices(int& devices) override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
int GetRecordingDeviceName(int index,
|
|
|
|
|
char strNameUTF8[128],
|
|
|
|
|
char strGuidUTF8[128]) override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
int GetPlayoutDeviceName(int index,
|
|
|
|
|
char strNameUTF8[128],
|
|
|
|
|
char strGuidUTF8[128]) override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
int SetRecordingDevice(int index,
|
|
|
|
|
StereoChannel recordingChannel = kStereoBoth) override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
int SetPlayoutDevice(int index) override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
int SetAudioDeviceLayer(AudioLayers audioLayer) override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
int GetAudioDeviceLayer(AudioLayers& audioLayer) override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
int SetRecordingSampleRate(unsigned int samples_per_sec) override;
|
|
|
|
|
int RecordingSampleRate(unsigned int* samples_per_sec) const override;
|
|
|
|
|
int SetPlayoutSampleRate(unsigned int samples_per_sec) override;
|
|
|
|
|
int PlayoutSampleRate(unsigned int* samples_per_sec) const override;
|
2012-12-04 19:11:55 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
bool BuiltInAECIsAvailable() const override;
|
|
|
|
|
int EnableBuiltInAEC(bool enable) override;
|
2015-09-23 14:08:33 +02:00
|
|
|
bool BuiltInAGCIsAvailable() const override;
|
|
|
|
|
int EnableBuiltInAGC(bool enable) override;
|
|
|
|
|
bool BuiltInNSIsAvailable() const override;
|
|
|
|
|
int EnableBuiltInNS(bool enable) override;
|
2014-12-09 16:22:09 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
protected:
|
|
|
|
|
VoEHardwareImpl(voe::SharedData* shared);
|
|
|
|
|
~VoEHardwareImpl() override;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-05-04 14:15:32 +02:00
|
|
|
private:
|
|
|
|
|
voe::SharedData* _shared;
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
|
|
|
|
|
2013-07-03 15:12:26 +00:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
#endif // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
|