hi_mpi_ao_enable_chn

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Enables an AO channel.

Prototype

hi_s32 hi_mpi_ao_enable_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

Restrictions

  • Before enabling an AO channel, you must set the attributes of the AO device by calling hi_mpi_ao_set_pub_attr. Otherwise, an error code indicating that the attributes are not set is returned.
  • Before enabling an AO channel, you must call hi_mpi_ao_enable to enable the AO device to which the AO channel belongs. Otherwise, the error code is returned, indicating that the AO device is not enabled.
  • 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 AO device is enabled, a code indicating success is returned.

See Also

For the API call sequence, see Obtaining and Playing Audios.