/*
 * Copyright (c) 2025 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.
 */

package OHOS.AudioStandard;

sequenceable audio_stream_info..OHOS.AudioStandard.AudioStreamInfo;
sequenceable audio_shared_memory..OHOS.AudioStandard.AudioSharedMemory;
interface IIpcOfflineStream {
    [ipccode 0] void CreateOfflineEffectChain([in] String chainName);
    void ConfigureOfflineEffectChain([in] AudioStreamInfo inInfo, [in] AudioStreamInfo outInfo);
    void SetParamOfflineEffectChain([in] List<unsigned char> param);
    void GetParamOfflineEffectChain([inout] List<unsigned char> param);
    void PrepareOfflineEffectChain([out] sharedptr<AudioSharedMemory> inBuffer, [out] sharedptr<AudioSharedMemory> outBuffer);
    void ProcessOfflineEffectChain([in] unsigned int inSize, [in] unsigned int outSize);
    void ReleaseOfflineEffectChain();
}