hi_mpi_ao_set_pub_attr

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

☓

Atlas A3 training products / Atlas A3 inference products

☓

Atlas A2 training products / Atlas A2 inference products

☓

Atlas 200I/500 A2 inference products

√

Atlas inference products

☓

Atlas training products

☓

Function

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

  • 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.

Reference

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