Audio Return Codes

Table 1 Error codes of APIs for basic audio attributes

Error Code

Macro Definition

Description

0xa0148003

HI_ERR_AIO_ILLEGAL_PARAM

The settings of basic audio attributes are invalid.

0xa0148006

HI_ERR_AIO_NULL_PTR

The pointer to the input parameter is null.

0xa0148009

HI_ERR_AIO_NOT_PERM

The operation is not permitted.

0xa0148010

HI_ERR_AIO_NOT_READY

The basic audio system is not initialized.

0xa0148012

HI_ERR_AIO_BUSY

The basic audio system is busy.

0xa014801d

HI_ERR_AIO_REGISTER_ERR

Registration failure.

Table 2 Audio input (AI) error codes

Error Code

Macro Definition

Description

0xa0158001

HI_ERR_AI_INVALID_DEV_ID

The AI device ID is invalid.

0xa0158002

HI_ERR_AI_INVALID_CHN_ID

The AI channel ID is invalid.

0xa0158003

HI_ERR_AI_ILLEGAL_PARAM

The AI parameter setting is invalid.

0xa0158006

HI_ERR_AI_NULL_PTR

The pointer to the input parameter is null.

0xa0158007

HI_ERR_AI_NOT_CFG

Attributes of the AI device are not set.

0xa0158009

HI_ERR_AI_NOT_PERM

The operation is not permitted.

0xa015800c

HI_ERR_AI_NO_MEM

The memory allocation fails.

0xa015800d

HI_ERR_AI_NO_BUF

The AI buffer is insufficient.

0xa015800e

HI_ERR_AI_BUF_EMPTY

The AI buffer is empty.

0xa015800f

HI_ERR_AI_BUF_FULL

The AI buffer is full.

0xa0158010

HI_ERR_AI_NOT_READY

The AI system is not initialized.

0xa0158012

HI_ERR_AI_BUSY

The AI system is busy.

0xa0158017

HI_ERR_AI_NOT_ENABLED

The AI device or channel is not enabled.

Table 3 Audio output (AO) error codes

Error Code

Macro Definition

Description

0xa0168001

HI_ERR_AO_INVALID_DEV_ID

The AO device ID is invalid.

0xa0168002

HI_ERR_AO_INVALID_CHN_ID

The AO channel ID is invalid.

0xa0168003

HI_ERR_AO_ILLEGAL_PARAM

The AO parameter setting is invalid.

0xa0168006

HI_ERR_AO_NULL_PTR

The AO pointer is null.

0xa0168007

HI_ERR_AO_NOT_ CFG

Attributes of the AO device are not set.

0xa0168009

HI_ERR_AO_NOT_PERM

The operation is not permitted.

0xa016800c

HI_ERR_AO_NO_MEM

The system memory is insufficient.

0xa016800d

HI_ERR_AO_NO_BUF

The AO buffer is insufficient.

0xa016800e

HI_ERR_AO_BUF_EMPTY

The AO buffer is empty.

0xa016800f

HI_ERR_AO_BUF_FULL

The AO buffer is full.

0xa0168010

HI_ERR_AO_NOT_READY

The AO system is not initialized.

0xa0168012

HI_ERR_AO_BUSY

The AO system is busy.

0xa0168017

HI_ERR_AO_NOT_ENABLED

The AO device or channel is not enabled.

Table 4 Audio encoding error codes

Error Code

Macro Definition

Description

0xa0178001

HI_ERR_AENC_INVALID_DEV_ID

The audio device ID is invalid.

0xa0178002

HI_ERR_AENC_INVALID_CHN_ID

The AENC channel ID is invalid.

0xa0178003

HI_ERR_AENC_ILLEGAL_PARAM

The audio encoding parameters are invalid.

0xa0178004

HI_ERR_AENC_EXIST

An AENC channel is already created.

0xa0178005

HI_ERR_AENC_UNEXIST

The AENC channel is not created.

0xa0178006

HI_ERR_AENC_NULL_PTR

The pointer to the input parameter is null.

0xa0178007

HI_ERR_AENC_NOT_CFG

The encoding channel is not configured.

0xa0178008

HI_ERR_AENC_NOT_SUPPORT

The operation is not supported.

0xa0178009

HI_ERR_AENC_NOT_PERM

The operation is not permitted.

0xa017800c

HI_ERR_AENC_NO_MEM

The system memory is insufficient.

0xa017800d

HI_ERR_AENC_NO_BUF

The buffer of the encoding channel fails to be allocated.

0xa017800e

HI_ERR_AENC_BUF_EMPTY

The encoding channel buffer is empty.

0xa017800f

HI_ERR_AENC_BUF_FULL

The encoding channel buffer is full.

0xa0178010

HI_ERR_AENC_NOT_READY

The system is not initialized.

0xa0178040

HI_ERR_AENC_ENCODER_ERR

The audio encoding data is incorrect.

Table 5 Audio decoding error codes

Error Code

Macro Definition

Description

0xa0188001

HI_ERR_ADEC_INVALID_DEV_ID

The ID of the ADEC device is invalid.

0xa0188002

HI_ERR_ADEC_INVALID_CHN_ID

The ADEC channel ID is invalid.

0xa0188003

HI_ERR_ADEC_ILLEGAL_PARAM

The audio decoding parameters are invalid.

0xa0188004

HI_ERR_ADEC_EXIST

An ADEC channel is already created.

0xa0188005

HI_ERR_ADEC_UNEXIST

The ADEC channel is not created.

0xa0188006

HI_ERR_ADEC_NULL_PTR

The pointer to the input parameter is null.

0xa0188007

HI_ERR_ADEC_NOT_CFG

The attributes of the decoding channel are not configured.

0xa0188008

HI_ERR_ADEC_NOT_SUPPORT

The operation is not supported.

0xa0188009

HI_ERR_ADEC_NOT_PERM

The operation is not permitted.

0xa018800c

HI_ERR_ADEC_NO_MEM

The system memory is insufficient.

0xa018800d

HI_ERR_ADEC_NO_BUF

The buffer of the decoding channel fails to be allocated.

0xa018800e

HI_ERR_ADEC_BUF_EMPTY

The decoding channel buffer is empty.

0xa018800f

HI_ERR_ADEC_BUF_FULL

The buffer of the decoding channel is full.

0xa0188010

HI_ERR_ADEC_NOT_READY

The system is not initialized.

0xa0188040

HI_ERR_ADEC_DECODER_ERR

The decoded audio data is incorrect.

0xa0188041

HI_ERR_ADEC_BUF_LACK

The buffer space for the input to be decoded is insufficient.