1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/signaling/include/CSFAudioControl.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#pragma once 1.9 + 1.10 +#include "CC_Common.h" 1.11 + 1.12 +namespace CSF 1.13 +{ 1.14 + DECLARE_NS_PTR(AudioControl) 1.15 + class ECC_API AudioControl 1.16 + { 1.17 + public: 1.18 + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(AudioControl) 1.19 + // device names are in UTF-8 encoding 1.20 + 1.21 + virtual std::vector<std::string> getRecordingDevices() = 0; 1.22 + virtual std::vector<std::string> getPlayoutDevices() = 0; 1.23 + 1.24 + virtual std::string getRecordingDevice() = 0; 1.25 + virtual std::string getPlayoutDevice() = 0; 1.26 + 1.27 + virtual bool setRecordingDevice( const std::string& name ) = 0; 1.28 + virtual bool setPlayoutDevice( const std::string& name ) = 0; 1.29 + 1.30 + virtual bool setDefaultVolume( int ) = 0; 1.31 + virtual int getDefaultVolume() = 0; 1.32 + 1.33 + virtual bool setRingerVolume( int ) = 0; 1.34 + virtual int getRingerVolume() = 0; 1.35 + 1.36 + virtual ~AudioControl(){}; 1.37 + }; 1.38 +};