1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef LOG_TAG 16 #define LOG_TAG "AudioCapturerProxyObj" 17 #endif 18 19 #include "audio_capturer_proxy_obj.h" 20 #include "audio_capturer_log.h" 21 22 using namespace std; 23 24 namespace OHOS { 25 namespace AudioStandard { SaveCapturerObj(std::weak_ptr<const AudioCapturer> capturerObj)26void AudioCapturerProxyObj::SaveCapturerObj(std::weak_ptr<const AudioCapturer> capturerObj) 27 { 28 capturer = capturerObj; 29 } 30 MuteStreamImpl(const StreamSetStateEventInternal & streamSetStateEventInternal)31void AudioCapturerProxyObj::MuteStreamImpl(const StreamSetStateEventInternal &streamSetStateEventInternal) 32 { 33 } 34 UnmuteStreamImpl(const StreamSetStateEventInternal & streamSetStateEventInternal)35void AudioCapturerProxyObj::UnmuteStreamImpl(const StreamSetStateEventInternal &streamSetStateEventInternal) 36 { 37 } 38 PausedStreamImpl(const StreamSetStateEventInternal & streamSetStateEventInternal)39void AudioCapturerProxyObj::PausedStreamImpl(const StreamSetStateEventInternal &streamSetStateEventInternal) 40 { 41 } 42 ResumeStreamImpl(const StreamSetStateEventInternal & streamSetStateEventInternal)43void AudioCapturerProxyObj::ResumeStreamImpl(const StreamSetStateEventInternal &streamSetStateEventInternal) 44 { 45 } 46 SetLowPowerVolumeImpl(float volume)47void AudioCapturerProxyObj::SetLowPowerVolumeImpl(float volume) 48 { 49 } 50 GetLowPowerVolumeImpl(float & volume)51void AudioCapturerProxyObj::GetLowPowerVolumeImpl(float &volume) 52 { 53 volume = 1.0; 54 } 55 GetSingleStreamVolumeImpl(float & volume)56void AudioCapturerProxyObj::GetSingleStreamVolumeImpl(float &volume) 57 { 58 volume = 0; 59 } 60 } // namespace AudioStandard 61 } // namespace OHOS 62