hi_mpi_ao_get_chn_delay
The
The
Description
Obtains the current audio delay of an AO channel.
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.
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
- 0: success
- Other values: failure. For details, see Audio Return Codes.
Parent topic: AI/AO