andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 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_VOLUME_CONTROL_IMPL_H |
| 12 | #define WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H |
| 13 | |
pbos@webrtc.org | 471ae72 | 2013-05-21 13:52:32 +0000 | [diff] [blame] | 14 | #include "webrtc/voice_engine/include/voe_volume_control.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 15 | |
pbos@webrtc.org | 471ae72 | 2013-05-21 13:52:32 +0000 | [diff] [blame] | 16 | #include "webrtc/voice_engine/shared_data.h" |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | |
| 20 | class VoEVolumeControlImpl : public VoEVolumeControl |
| 21 | { |
| 22 | public: |
| 23 | virtual int SetSpeakerVolume(unsigned int volume); |
| 24 | |
| 25 | virtual int GetSpeakerVolume(unsigned int& volume); |
| 26 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 27 | virtual int SetMicVolume(unsigned int volume); |
| 28 | |
| 29 | virtual int GetMicVolume(unsigned int& volume); |
| 30 | |
| 31 | virtual int SetInputMute(int channel, bool enable); |
| 32 | |
| 33 | virtual int GetInputMute(int channel, bool& enabled); |
| 34 | |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 35 | virtual int GetSpeechInputLevel(unsigned int& level); |
| 36 | |
| 37 | virtual int GetSpeechOutputLevel(int channel, unsigned int& level); |
| 38 | |
| 39 | virtual int GetSpeechInputLevelFullRange(unsigned int& level); |
| 40 | |
| 41 | virtual int GetSpeechOutputLevelFullRange(int channel, |
| 42 | unsigned int& level); |
| 43 | |
| 44 | virtual int SetChannelOutputVolumeScaling(int channel, float scaling); |
| 45 | |
| 46 | virtual int GetChannelOutputVolumeScaling(int channel, float& scaling); |
| 47 | |
| 48 | virtual int SetOutputVolumePan(int channel, float left, float right); |
| 49 | |
| 50 | virtual int GetOutputVolumePan(int channel, float& left, float& right); |
| 51 | |
| 52 | |
| 53 | protected: |
| 54 | VoEVolumeControlImpl(voe::SharedData* shared); |
| 55 | virtual ~VoEVolumeControlImpl(); |
| 56 | |
| 57 | private: |
| 58 | voe::SharedData* _shared; |
| 59 | }; |
| 60 | |
pbos@webrtc.org | 3b89e10 | 2013-07-03 15:12:26 +0000 | [diff] [blame] | 61 | } // namespace webrtc |
andrew@webrtc.org | b015cbe | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 62 | |
| 63 | #endif // WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H |