1 /* 2 * Copyright (c) 2023 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 16 #include "audio_capturer_adapter_impl.h" 17 18 namespace OHOS::NWeb { Create(const AudioAdapterCapturerOptions & capturerOptions,std::string cachePath)19int32_t AudioCapturerAdapterImpl::Create(const AudioAdapterCapturerOptions& capturerOptions, std::string cachePath) 20 { 21 return -1; 22 } 23 Start()24bool AudioCapturerAdapterImpl::Start() 25 { 26 return false; 27 } 28 Stop()29bool AudioCapturerAdapterImpl::Stop() 30 { 31 return false; 32 } 33 Release()34bool AudioCapturerAdapterImpl::Release() 35 { 36 return false; 37 } 38 SetCapturerReadCallback(const std::shared_ptr<AudioCapturerReadCallbackAdapter> & callback)39int32_t AudioCapturerAdapterImpl::SetCapturerReadCallback( 40 const std::shared_ptr<AudioCapturerReadCallbackAdapter>& callback) 41 { 42 return -1; 43 } 44 GetBufferDesc(BufferDescAdapter & bufferDesc)45int32_t AudioCapturerAdapterImpl::GetBufferDesc(BufferDescAdapter& bufferDesc) 46 { 47 return -1; 48 } 49 Enqueue(const BufferDescAdapter & bufferDesc) const50int32_t AudioCapturerAdapterImpl::Enqueue(const BufferDescAdapter& bufferDesc) const 51 { 52 return -1; 53 } 54 GetFrameCount(uint32_t & frameCount) const55int32_t AudioCapturerAdapterImpl::GetFrameCount(uint32_t& frameCount) const 56 { 57 return -1; 58 } 59 GetAudioTime()60int64_t AudioCapturerAdapterImpl::GetAudioTime() 61 { 62 return -1; 63 } 64 } // namespace OHOS::NWeb 65