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
|
|
|
|
|
|
|
|
namespace webrtc
|
|
|
|
|
{
|
|
|
|
|
|
2012-04-26 15:28:22 +00:00
|
|
|
class VoEHardwareImpl: public VoEHardware
|
2011-07-07 08:21:25 +00:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual int GetNumOfRecordingDevices(int& devices);
|
|
|
|
|
|
|
|
|
|
virtual int GetNumOfPlayoutDevices(int& devices);
|
|
|
|
|
|
|
|
|
|
virtual int GetRecordingDeviceName(int index,
|
|
|
|
|
char strNameUTF8[128],
|
|
|
|
|
char strGuidUTF8[128]);
|
|
|
|
|
|
|
|
|
|
virtual int GetPlayoutDeviceName(int index,
|
|
|
|
|
char strNameUTF8[128],
|
|
|
|
|
char strGuidUTF8[128]);
|
|
|
|
|
|
|
|
|
|
virtual int SetRecordingDevice(
|
|
|
|
|
int index,
|
|
|
|
|
StereoChannel recordingChannel = kStereoBoth);
|
|
|
|
|
|
|
|
|
|
virtual int SetPlayoutDevice(int index);
|
|
|
|
|
|
|
|
|
|
virtual int SetAudioDeviceLayer(AudioLayers audioLayer);
|
|
|
|
|
|
|
|
|
|
virtual int GetAudioDeviceLayer(AudioLayers& audioLayer);
|
|
|
|
|
|
2012-12-04 19:11:55 +00:00
|
|
|
virtual int SetRecordingSampleRate(unsigned int samples_per_sec);
|
|
|
|
|
virtual int RecordingSampleRate(unsigned int* samples_per_sec) const;
|
|
|
|
|
virtual int SetPlayoutSampleRate(unsigned int samples_per_sec);
|
|
|
|
|
virtual int PlayoutSampleRate(unsigned int* samples_per_sec) const;
|
|
|
|
|
|
2011-07-07 08:21:25 +00:00
|
|
|
protected:
|
2012-04-04 14:57:19 +00:00
|
|
|
VoEHardwareImpl(voe::SharedData* shared);
|
2011-07-07 08:21:25 +00:00
|
|
|
virtual ~VoEHardwareImpl();
|
|
|
|
|
|
|
|
|
|
private:
|
2012-04-04 14:57:19 +00:00
|
|
|
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
|