1 /* 2 * Copyright (c) 2024 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 MULTIMEDIA_AUDIO_ERROR_H 17 #define MULTIMEDIA_AUDIO_ERROR_H 18 19 namespace OHOS { 20 namespace AudioStandard { 21 /* cangjie error code */ 22 const int32_t CJ_ERROR_INVALID_PARAM = 6800101; 23 const int32_t CJ_ERR_NO_PERMISSION = 201; 24 const int32_t CJ_ERR_PERMISSION_DENIED = 202; 25 const int32_t CJ_ERR_INPUT_INVALID = 401; 26 const int32_t CJ_ERR_INVALID_PARAM = 6800101; 27 const int32_t CJ_ERR_NO_MEMORY = 6800102; 28 const int32_t CJ_ERR_ILLEGAL_STATE = 6800103; 29 const int32_t CJ_ERR_UNSUPPORTED = 6800104; 30 const int32_t CJ_ERR_TIMEOUT = 6800105; 31 const int32_t CJ_ERR_STREAM_LIMIT = 6800201; 32 const int32_t CJ_ERR_SYSTEM = 6800301; 33 34 const size_t CJ_ERR_INVALID_RETURN_VALUE = 0; 35 const int32_t CJ_ERR_INVALID_VALUE = -1; 36 const double CJ_ERR_INVALID_RETURN_DOUBLE_VALUE = 0.0; 37 const float CJ_ERR_INVALID_RETURN_FLOAT_VALUE = 0.0; 38 39 /* native error code */ 40 const int32_t NATIVE_SUCCESS = 0; 41 } // namespace AudioStandard 42 } // namespace OHOS 43 #endif // MULTIMEDIA_AUDIO_ERROR_H 44