Parameter Obtaining
The AO module provides the feature of obtaining parameters through the GetParam API.
AUDIO_GET_AUDIOPLAY_PARAM
Set module to DATA_AUDIO and cmd to AUDIO_GET_AUDIOPLAY_PARAM, and input data of the AudioPlayParams type to obtain audio playback parameters. The following is an example:
VmiDataType module = DATA_AUDIO; VmiCmd cmd = AUDIO_GET_AUDIOPLAY_PARAM; AudioPlayParams audioPlayParams; uint8_t* param = &audioPlayParams; GetParam(module, cmd, param, sizeof(AudioPlayParams));
Parent topic: Audio Output Development