hi_mpi_ai_enable
The
The
Description
Enables an AI device.
Restrictions
- Before enabling an AI device, set the attributes of the AI device by calling hi_mpi_ai_set_pub_attr. Otherwise, an error code is returned, indicating that the attributes are not configured.
- If the AI device is enabled, a code indicating success is returned.
Prototype
hi_s32 hi_mpi_ai_enable(hi_audio_dev ai_dev);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ai_dev |
Input |
Audio device ID. The value range is [0, 2]. |
Returns
- 0: success
- Other values: failure. For details, see Audio Return Codes.
Parent topic: AI/AO