blob: 9e1cc5abc9ceff22183a0c3605aa5c8f4a17cde7 [file] [log] [blame]
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +00001/*
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 "voe_volume_control.h"
15
16#include "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 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:
62 VoEVolumeControlImpl(voe::SharedData* shared);
63 virtual ~VoEVolumeControlImpl();
64
65private:
66 voe::SharedData* _shared;
67};
68
69} // namespace webrtc
70
71#endif // WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H
72