hi_mpi_ao_set_pub_attr

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

The Atlas Training Series Product does not support this API.

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