hi_mpi_ao_set_pub_attr

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

Sets the attributes of an AO device.

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

Restrictions

  • Before setting the attributes of an AO device, you need to call hi_mpi_ao_disable to disable the AO device.
  • 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.

See Also

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