hi_mpi_ao_enable

Applicability

Product

Supported

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

Description

Enables an AO device.

Prototype

hi_s32 hi_mpi_ao_enable(hi_audio_dev ao_dev)

Parameters

Parameter

Input/Output

Description

ao_dev

Input

Audio device ID. The value range is [0, 4].

Returns

Restrictions

  • Before enabling an AO device, 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.
  • If the AO device is enabled, a code indicating success is returned.

See Also

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