1/*
2 *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
14#include "webrtc/voice_engine/include/voe_hardware.h"
15
16#include "webrtc/voice_engine/shared_data.h"
17
18namespace webrtc
19{
20
21class VoEHardwareImpl: public VoEHardware
22{
23public:
24    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
36    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
46    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
51protected:
52    VoEHardwareImpl(voe::SharedData* shared);
53    virtual ~VoEHardwareImpl();
54
55private:
56    voe::SharedData* _shared;
57};
58
59}  // namespace webrtc
60
61#endif  // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H
62