hi_mpi_ao_set_pub_attr
The
The
Description
Sets the attributes of an AO device.
Restrictions
- Disable the AO device by calling hi_mpi_ao_disable before setting the attributes.
- In stereo or audio-right channel mode, chn_cnt must be set to 2. In audio-left channel mode, chn_cnt must be set to 1.
Prototype
hi_s32 hi_mpi_ao_set_pub_attr(hi_audio_dev ao_dev, hi_aio_attr *attr);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ao_dev |
Input |
Audio device ID. The value range is [0, 4]. |
attr |
Input |
Attributes of the AO device. |
Returns
- 0: success
- Other values: failure. For details, see Audio Return Codes.
Parent topic: AI/AO