1/*
2 * Copyright (c) 2022-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#ifndef OHOS_DAUDIO_ERRCODE_H
17#define OHOS_DAUDIO_ERRCODE_H
18
19namespace OHOS {
20namespace DistributedHardware {
21enum DAudioErrorCode {
22    DH_SUCCESS = 0,
23    // Distributed Audio HDF Error Code
24    ERR_DH_AUDIO_HDF_FAIL = -46001,
25    ERR_DH_AUDIO_HDF_NULLPTR = -46002,
26    ERR_DH_AUDIO_HDF_INVALID_PARAM = -46003,
27    ERR_DH_AUDIO_HDF_REPEAT_OPERATION = -46004,
28    ERR_DH_AUDIO_HDF_INVALID_OPERATION = -46005,
29    ERR_DH_AUDIO_HDF_SET_PARAM_FAIL = -46006,
30    ERR_DH_AUDIO_HDF_OPEN_DEVICE_FAIL = -46007,
31    ERR_DH_AUDIO_HDF_CLOSE_DEVICE_FAIL = -46008,
32    ERR_DH_AUDIO_COMMON_NOT_FOUND_KEY = -46009,
33    ERR_DH_AUDIO_HDF_WAIT_TIMEOUT = -46010,
34
35    ERR_DH_AUDIO_HDF_INIT_ENGINE_FAILED = -46011,
36    ERR_DH_AUDIO_HDF_NOTIFY_SINK_FAILED = -46012,
37    ERR_DH_AUDIO_HDF_TRANS_SETUP_FAILED = -46013,
38    ERR_DH_AUDIO_HDF_TRANS_START_FAILED = -46014,
39    ERR_DH_AUDIO_HDF_RESULT_FAILED = -46015,
40};
41} // Distributedaudio
42} // OHOS
43#endif
44