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
14#include "webrtc/voice_engine/include/voe_volume_control.h"
15
16#include "webrtc/voice_engine/shared_data.h"
17
18namespace webrtc {
19
20class VoEVolumeControlImpl : public VoEVolumeControl
21{
22public:
23    virtual int SetSpeakerVolume(unsigned int volume);
24
25    virtual int GetSpeakerVolume(unsigned int& volume);
26
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
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
53protected:
54    VoEVolumeControlImpl(voe::SharedData* shared);
55    virtual ~VoEVolumeControlImpl();
56
57private:
58    voe::SharedData* _shared;
59};
60
61}  // namespace webrtc
62
63#endif    // WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H
64