hi_mpi_ao_enable_chn

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Enables an AO channel.

Restrictions

  • Before enabling an AO channel, configure the attributes of the AO device by calling hi_mpi_ao_set_pub_attr. Otherwise, an error code is returned, indicating that the attributes are not configured.
  • Before enabling an AO channel, enable the AO device to which the AO channel belongs by calling hi_mpi_ao_enable. Otherwise, an error code is returned, indicating that the AO device is not started.
  • 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.

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