hi_mpi_ao_disable_chn
Applicability
|
Product |
Supported |
|---|---|
|
|
☓ |
|
|
☓ |
|
|
√ |
|
|
☓ |
|
|
☓ |
Description
Disables an AO channel.
Prototype
hi_s32 hi_mpi_ao_disable_chn(hi_audio_dev ao_dev, hi_ao_chn ao_chn)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
ao_dev |
Input |
Audio device ID. The value range is [0, 4]. |
|
ao_chn |
Input |
AO channel ID. |
Returns
- 0: success
- Other values: failure. For details, see Audio Return Codes.
Restrictions
- When the audio-left channel or stereo channel is used for recording, ao_chn must be fixed at 0. When the audio-right channel is used for recording, ao_chn is 1.
- If the attributes are set but the AO channel is disabled, a code indicating success is returned. If the attributes are not set, an error code indicating that the attributes are not configured is returned when this API is called.
Parent topic: AI/AO