/* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef OHOS_VDI_AUDIO_EFFECT_V1_0_IEFFECTCONTROL_H #define OHOS_VDI_AUDIO_EFFECT_V1_0_IEFFECTCONTROL_H #include #include "v1_0/effect_types_vdi.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define IEFFECT_VDI_CONTROL_MAJOR_VERSION 1 #define IEFFECT_VDI_CONTROL_MINOR_VERSION 0 struct IEffectControlVdi { int32_t (*EffectProcess)(struct IEffectControlVdi *self, const struct AudioEffectBufferVdi *input, struct AudioEffectBufferVdi *output); int32_t (*SendCommand)(struct IEffectControlVdi *self, enum EffectCommandTableIndexVdi cmdId, const int8_t *cmdData, uint32_t cmdDataLen, int8_t *replyData, uint32_t *replyDataLen); int32_t (*GetEffectDescriptor)(struct IEffectControlVdi *self, struct EffectControllerDescriptorVdi *desc); int32_t (*EffectReverse)(struct IEffectControlVdi *self, const struct AudioEffectBufferVdi *input, struct AudioEffectBufferVdi *output); }; #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* OHOS_VDI_AUDIO_EFFECT_V1_0_IEFFECTCONTROL_H */