hi_mpi_ao_get_chn_delay

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

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 Audio Obtaining and Playing.