blob: 9e1cc5abc9ceff22183a0c3605aa5c8f4a17cde7 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
tommi@webrtc.org851becd2012-04-04 14:57:19 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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 "voe_volume_control.h"
15
niklase@google.com470e71d2011-07-07 08:21:25 +000016#include "shared_data.h"
17
18namespace webrtc {
19
tommi@webrtc.orga990e122012-04-26 15:28:22 +000020class VoEVolumeControlImpl : public VoEVolumeControl
niklase@google.com470e71d2011-07-07 08:21:25 +000021{
22public:
niklase@google.com470e71d2011-07-07 08:21:25 +000023 virtual int SetSpeakerVolume(unsigned int volume);
24
25 virtual int GetSpeakerVolume(unsigned int& volume);
26
27 virtual int SetSystemOutputMute(bool enable);
28
29 virtual int GetSystemOutputMute(bool& enabled);
30
31 virtual int SetMicVolume(unsigned int volume);
32
33 virtual int GetMicVolume(unsigned int& volume);
34
35 virtual int SetInputMute(int channel, bool enable);
36
37 virtual int GetInputMute(int channel, bool& enabled);
38
39 virtual int SetSystemInputMute(bool enable);
40
41 virtual int GetSystemInputMute(bool& enabled);
42
43 virtual int GetSpeechInputLevel(unsigned int& level);
44
45 virtual int GetSpeechOutputLevel(int channel, unsigned int& level);
46
47 virtual int GetSpeechInputLevelFullRange(unsigned int& level);
48
49 virtual int GetSpeechOutputLevelFullRange(int channel,
50 unsigned int& level);
51
52 virtual int SetChannelOutputVolumeScaling(int channel, float scaling);
53
54 virtual int GetChannelOutputVolumeScaling(int channel, float& scaling);
55
56 virtual int SetOutputVolumePan(int channel, float left, float right);
57
58 virtual int GetOutputVolumePan(int channel, float& left, float& right);
59
60
61protected:
tommi@webrtc.org851becd2012-04-04 14:57:19 +000062 VoEVolumeControlImpl(voe::SharedData* shared);
niklase@google.com470e71d2011-07-07 08:21:25 +000063 virtual ~VoEVolumeControlImpl();
tommi@webrtc.org851becd2012-04-04 14:57:19 +000064
65private:
66 voe::SharedData* _shared;
niklase@google.com470e71d2011-07-07 08:21:25 +000067};
68
69} // namespace webrtc
70
71#endif // WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H
72