niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
tommi@webrtc.org | 851becd | 2012-04-04 14:57:19 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
pbos@webrtc.org | 956aa7e | 2013-05-21 13:52:32 +0000 | [diff] [blame] | 14 | #include "webrtc/voice_engine/include/voe_hardware.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 15 | |
pbos@webrtc.org | 956aa7e | 2013-05-21 13:52:32 +0000 | [diff] [blame] | 16 | #include "webrtc/voice_engine/shared_data.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 17 | |
| 18 | namespace webrtc |
| 19 | { |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 20 | |
tommi@webrtc.org | a990e12 | 2012-04-26 15:28:22 +0000 | [diff] [blame] | 21 | class VoEHardwareImpl: public VoEHardware |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 22 | { |
| 23 | public: |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
leozwang@webrtc.org | 96bcac8 | 2012-12-04 19:11:55 +0000 | [diff] [blame] | 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 | |
henrika@webrtc.org | a954c07 | 2014-12-09 16:22:09 +0000 | [diff] [blame^] | 51 | virtual bool BuiltInAECIsAvailable() const; |
| 52 | virtual int EnableBuiltInAEC(bool enable); |
| 53 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 54 | protected: |
tommi@webrtc.org | 851becd | 2012-04-04 14:57:19 +0000 | [diff] [blame] | 55 | VoEHardwareImpl(voe::SharedData* shared); |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 56 | virtual ~VoEHardwareImpl(); |
| 57 | |
| 58 | private: |
tommi@webrtc.org | 851becd | 2012-04-04 14:57:19 +0000 | [diff] [blame] | 59 | voe::SharedData* _shared; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 60 | }; |
| 61 | |
pbos@webrtc.org | d900e8b | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 62 | } // namespace webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 63 | |
| 64 | #endif // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_IMPL_H |