1 /* 2 * Copyright (C) 2021-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 16 #ifndef A2DP_ENCODER_AAC_H 17 #define A2DP_ENCODER_AAC_H 18 19 #include <cstdint> 20 #include "../../include/a2dp_codec_wrapper.h" 21 22 namespace OHOS { 23 namespace bluetooth { 24 class A2dpAacEncoder : public A2dpEncoder { 25 public: A2dpAacEncoder(const A2dpEncoderInitPeerParams * peerParams,A2dpCodecConfig * config)26 A2dpAacEncoder(const A2dpEncoderInitPeerParams *peerParams, A2dpCodecConfig *config) : A2dpEncoder(config) 27 {} 28 ~A2dpAacEncoder() = default; ResetFeedingState(void)29 void ResetFeedingState(void) override 30 {} SetTransmitQueueLength(size_t length)31 void SetTransmitQueueLength(size_t length) override 32 {} SendFrames(uint64_t timeStampUs)33 void SendFrames(uint64_t timeStampUs) override 34 {} UpdateEncoderParam()35 void UpdateEncoderParam() override 36 {} GetRenderPosition(uint64_t & sendDataSize,uint32_t & timeStamp)37 void GetRenderPosition(uint64_t &sendDataSize, uint32_t &timeStamp) override 38 {} 39 }; 40 } // namespace bluetooth 41 } // namespace OHOS 42 #endif // A2DP_ENCODER_AAC_H