michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #pragma once michael@0: michael@0: #include "CC_Common.h" michael@0: michael@0: namespace CSF michael@0: { michael@0: DECLARE_NS_PTR(AudioControl) michael@0: class ECC_API AudioControl michael@0: { michael@0: public: michael@0: NS_INLINE_DECL_THREADSAFE_REFCOUNTING(AudioControl) michael@0: // device names are in UTF-8 encoding michael@0: michael@0: virtual std::vector getRecordingDevices() = 0; michael@0: virtual std::vector getPlayoutDevices() = 0; michael@0: michael@0: virtual std::string getRecordingDevice() = 0; michael@0: virtual std::string getPlayoutDevice() = 0; michael@0: michael@0: virtual bool setRecordingDevice( const std::string& name ) = 0; michael@0: virtual bool setPlayoutDevice( const std::string& name ) = 0; michael@0: michael@0: virtual bool setDefaultVolume( int ) = 0; michael@0: virtual int getDefaultVolume() = 0; michael@0: michael@0: virtual bool setRingerVolume( int ) = 0; michael@0: virtual int getRingerVolume() = 0; michael@0: michael@0: virtual ~AudioControl(){}; michael@0: }; michael@0: };