hi_mpi_ao_get_chn_delay

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

Functions

Obtains the current audio delay of an AO channel.

Prototype

hi_s32 hi_mpi_ao_get_chn_delay(hi_audio_dev ao_dev, hi_ao_chn ao_chn, hi_u32 *milli_sec)

Parameters

Parameter

Input/Output

Description

ao_dev

Input

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

ao_chn

Input

AO channel ID.

milli_sec

Output

Pointer to the audio delay (ms)

Returns

Restrictions

  • This API must be called after an AO channel is successfully enabled.
  • It obtains the current audio delay of an AO channel. When the queried delay is 0, the system stops waiting and enters the process to stop playing.

See Also

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