hi_mpi_ai_set_chn_attr
The
The
Description
Sets the attributes of an AI channel.
Prototype
hi_s32 hi_mpi_ai_set_chn_attr(hi_audio_dev ai_dev, hi_ai_chn ai_chn, const hi_ai_chn_attr *chn_attr);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ai_dev |
Input |
Audio device ID. The value range is [0, 2]. In the network video recorder (NVR) scenario, only dev2 is involved. |
ai_chn |
Input |
AI channel ID Only the mono audio channel is supported. The value of ai_chn is fixed at 0. |
chn_attr |
Input |
Pointer to the structure of audio channel attributes
|
Returns
- 0: success
- Other values: failure. For details, see Audio Return Codes.
Parent topic: AI/AO