blob: b5e3b1b02d69a86196848bab0833c939d8303d7a [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-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
pbos@webrtc.org471ae722013-05-21 13:52:32 +000014#include "webrtc/voice_engine/include/voe_volume_control.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000015
pbos@webrtc.org471ae722013-05-21 13:52:32 +000016#include "webrtc/voice_engine/shared_data.h"
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000017
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
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000027 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.orgb015cbe2012-10-22 18:19:23 +000035 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
pbos@webrtc.org3b89e102013-07-03 15:12:26 +000061} // namespace webrtc
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000062
63#endif // WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H