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