10.5. Error Codes

10.5.1. Audio Basic Attribute Error CodeS

Cvitek audio uses CVI_SUCCESS/CVI_FAILURE to represent the basic returned error code:

#define CVI_SUCCESS 0

#define CVI_FAILURE (-1)

Users should note that CVI_TRUE/CVI_FALSE is only used as a basic judgment reply, not as a Success or failure judgment:

#define CVI_TRUE 1

#define CVI_FALSE 0

10.5.2. Audio Input Error Codes

Cvitek audio input error code refers to cvi_comm_aio.h related settings. The corresponding error codes are all beginning with CVI_ERR_AI:

Error Code

Macro Definition

Description

0xAA000001

CVI_ERR_AIO_ILLEGAL_PARAM

Invalid audio input parameter setting

0xAA000002

CVI_ERR_AIO_NULL_PTR

Input parameter null pointer error

0xAA000003

CVI_ERR_AIO_NOT_PERM

Operation not permitted

0xAA000004

CVI_ERR_AIO_REGISTER_ERR

Fail to register

0xA0000005

CVI_ERR_AI_INVALID_DEVID

Illegal device ID

0xA0000006

CVI_ERR_AI_INVALID_CHNID

Illegal channel ID

0xA0000001

CVI_ERR_AI_ILLEGAL_PARAM

Invalid audio input parameter setting

0xA0000002

CVI_ERR_AI_NULL_PTR

Input parameter null pointer error

0xA0000007

CVI_ERR_AI_NOT_CONFIG

Parameter not set

0xA0000008

CVI_ERR_AI_NOT_SUPPORT

Parameters set in are not supported

0xA0000009

CVI_ERR_AI_NOT_ENABLED

Audio Input cannot be enabled in this state

0xA0000003

CVI_ERR_AI_NOT_PERM

The set parameter is not supported

0xA000000A

CVI_ERR_AI_NOMEM

insufficient memory

0xA000000B

CVI_ERR_AI_NOBUF

The buffer is not set or initialized

0xA000000C

CVI_ERR_AI_BUF_EMPTY

Buffer data is empty

0xA000000D

CVI_ERR_AI_BUF_FULL

Buffer full

0xA000000E

CVI_ERR_AI_SYS_NOTREADY

The system is busy and not ready for use

0xA000000F

CVI_ERR_AI_BUSY

Audio Input module busy

0xA0000010

CVI_ERR_AI_VQE_ERR

VQE module error

0xA0000011

CVI_ERR_AI_VQE_BUF_FULL

VQE Buffer is empty

0xA0000012

CVI_ERR_AI_VQE_FILE_UNEXIST

The VQE configuration file does not exist.

10.5.3. Audio Output Error Codes

Cvitek audio input error code refers to cvi_comm_aio.h related settings. The corresponding error codes are all beginning with CVI_ERR_AO:

Error Code

Macro Definition

Description

0xA1000001

CVI_ERR_AO_INVALID_DEVID

Illegal device ID

0xA1000002

CVI_ERR_AO_INVALID_CHNID

Illegal channel ID

0xA1000003

CVI_ERR_AO_ILLEGAL_PARAM

Invalid audio output parameter setting

0xA1000004

CVI_ERR_AO_NULL_PTR

Input parameter null pointer error

0xA1000005

CVI_ERR_AO_NOT_CONFIG

Parameter not set

0xA1000006

C VI_ERR_AO_NOT_SUPPORT

Parameters set in are not supported

0xA1000007

CVI_ERR_AO_NOT_PERM

operation not permitted

0xA1000008

C VI_ERR_AO_NOT_ENABLED

Audio Input cannot be enabled in this state

0xA1000009

CVI_ERR_AO_NOMEM

insufficient memory

0xA100000A

CVI_ERR_AO_NOBUF

The buffer is not set or initialized

0xA100000B

CVI_ERR_AO_BUF_EMPTY

Buffer data is empty

0xA100000C

CVI_ERR_AO_BUF_FULL

Buffer is full

0xA100000D

CVI_ERR_AO_SYS_NOTREADY

The system is busy and not ready for use

0xA100000E

CVI_ERR_AO_BUSY

Audio Output module busy

0xA100000F

CVI_ERR_AO_VQE_ERR

AI_VQE module error

10.5.4. Audio Encoding Error Codes

Cvitek audio input error code refers to cvi_comm_aenc.h related settings.

The corresponding error codes are all beginning with CVI_ERR_AENC:

Error Code

Macro Definition

Description

0xA2000001

CVI_E RR_AENC_INVALID_DEVID

Illegal device ID

0xA2000002

CVI_E RR_AENC_INVALID_CHNID

Illegal channel ID

0xA2000003

CVI_E RR_AENC_ILLEGAL_PARAM

Invalid setting of audio encoding parameters

0xA2000004

CVI_ERR_AENC_EXIST

Audio coding module is on

0xA2000005

CVI_ERR_AENC_UNEXIST

The status of audio coding module is nonexistent

0xA2000006

CVI_ERR_AENC_NULL_PTR

Input parameter null pointer error

0xA2000007

CVI_ERR_AENC_NOT_CONFIG

Parameter not set

0xA2000008

CVI_ERR_AENC_NOT_SUPPORT

Parameters set in are not supported

0xA2000009

CVI_ERR_AENC_NOT_PERM

operation not permitted

0xA200000A

CVI_ERR_AENC_NOMEM

insufficient memory

0xA200000B

CVI_ERR_AENC_NOBUF

The buffer is not set or initialized

0xA200000C

C VI_ERR_AENC_BUF_EMPTY

Buffer data is empty

0xA200000D

CVI_ERR_AENC_BUF_FULL

Buffer full

0xA200000E

CVI_ERR_AENC_SYS_NOTREADY

The system is busy and not ready for use

0xA200000F

CVI_ERR_AENC_ENCODER_ERR

AENC Coding error

0xA2000010

CVI_ERR_AENC_VQE_ERR

VQE module error

10.5.5. Audio Decoding Error Codes

Cvitek audio input error code refer to cvi_comm_aenc.h related settings. The corresponding error codes are all beginning with CVI_ERR_ADEC:

Error Code

Macro Definition

Description

0xA3000001

CVI_E RR_ADEC_INVALID_DEVID

Illegal device ID

0xA3000002

CVI_E RR_ADEC_INVALID_CHNID

Illegal channel ID

0xA3000003

CVI_E RR_ADEC_ILLEGAL_PARAM

Invalid setting of audio encoding parameters

0xA3000004

CVI_ERR_ADEC_EXIST

Audio coding module is on

0xA3000005

CVI_ERR_ADEC_UNEXIST

The status of audio coding module is nonexistent

0xA3000006

CVI_ERR_ADEC_NULL_PTR

Input parameter null pointer error

0xA3000007

CVI_ERR_ADEC_NOT_CONFIG

Parameter not set

0xA3000008

CVI_ERR_ADEC_NOT_SUPPORT

Parameters set in are not supported

0xA3000009

CVI_ERR_ADEC_NOT_PERM

Operation not permitted

0xA300000A

CVI_ERR_ADEC_NOMEM

Insufficient memory

0xA300000B

CVI_ERR_ADEC_NOBUF

The buffer is not set or initialized

0xA300000C

C VI_ERR_ADEC_BUF_EMPTY

Buffer data is empty

0xA300000D

CVI_ERR_ADEC_BUF_FULL

Buffer full

0xA300000E

CVI_ERR_ADEC_SYS_NOTREADY

The system is busy and not ready for use

0xA300000F

CVI_ERR_ADEC_DECODER_ERR

ADEC coding error

0xA3000010

CVI_ERR_ADEC_BUF_LACK

Insufficient input buffer space for ADEC decoding