1470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com/* 2851becd00ce814f0e02a5c5a56ac0322a7f9494dtommi@webrtc.org * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 3470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com * 4470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com * Use of this source code is governed by a BSD-style license 5470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com * that can be found in the LICENSE file in the root of the source 6470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com * tree. An additional intellectual property rights grant can be found 7470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com * in the file PATENTS. All contributing project authors may 8470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com * be found in the AUTHORS file in the root of the source tree. 9470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com */ 10470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 11470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com#ifndef WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H 12470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com#define WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H 13470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 14956aa7e0874f2e08c335a82a2c32f400fac8b031pbos@webrtc.org#include "webrtc/voice_engine/include/voe_volume_control.h" 15470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 16956aa7e0874f2e08c335a82a2c32f400fac8b031pbos@webrtc.org#include "webrtc/voice_engine/shared_data.h" 17470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 18470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.comnamespace webrtc { 19470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 200d266054acece70259fc1e85026194154f41e5a0Jelena Marusicclass VoEVolumeControlImpl : public VoEVolumeControl { 210d266054acece70259fc1e85026194154f41e5a0Jelena Marusic public: 220d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int SetSpeakerVolume(unsigned int volume) override; 23470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 240d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetSpeakerVolume(unsigned int& volume) override; 25470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 260d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int SetMicVolume(unsigned int volume) override; 27470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 280d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetMicVolume(unsigned int& volume) override; 29470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 300d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int SetInputMute(int channel, bool enable) override; 31470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 320d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetInputMute(int channel, bool& enabled) override; 33470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 340d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetSpeechInputLevel(unsigned int& level) override; 35470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 360d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetSpeechOutputLevel(int channel, unsigned int& level) override; 37470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 380d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetSpeechInputLevelFullRange(unsigned int& level) override; 39470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 400d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetSpeechOutputLevelFullRange(int channel, unsigned int& level) override; 41470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 420d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int SetChannelOutputVolumeScaling(int channel, float scaling) override; 43470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 440d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetChannelOutputVolumeScaling(int channel, float& scaling) override; 45470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 460d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int SetOutputVolumePan(int channel, float left, float right) override; 47470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 480d266054acece70259fc1e85026194154f41e5a0Jelena Marusic int GetOutputVolumePan(int channel, float& left, float& right) override; 49470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 500d266054acece70259fc1e85026194154f41e5a0Jelena Marusic protected: 510d266054acece70259fc1e85026194154f41e5a0Jelena Marusic VoEVolumeControlImpl(voe::SharedData* shared); 520d266054acece70259fc1e85026194154f41e5a0Jelena Marusic ~VoEVolumeControlImpl() override; 53470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 540d266054acece70259fc1e85026194154f41e5a0Jelena Marusic private: 550d266054acece70259fc1e85026194154f41e5a0Jelena Marusic voe::SharedData* _shared; 56470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com}; 57470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 58d900e8bea84c474696bf0219aed1353ce65ffd8epbos@webrtc.org} // namespace webrtc 59470e71d3649f6cac4688e83819640b012b5d38bbniklase@google.com 600d266054acece70259fc1e85026194154f41e5a0Jelena Marusic#endif // WEBRTC_VOICE_ENGINE_VOE_VOLUME_CONTROL_IMPL_H 61