我要评分
获取效率
正确性
完整性
易理解

Parameter Setting

The AO module provides the feature of setting parameters through the SetParam API.

AUDIO_SET_AUDIOPLAY_PARAM

Set module to DATA_AUDIO and cmd to AUDIO_SET_AUDIOPLAY_PARAM, and input data of the AudioPlayParams type to set audio playback parameters. The following is an example:

VmiDataType module = DATA_AUDIO;
VmiCmd cmd = AUDIO_SET_AUDIOPLAY_PARAM;
AudioPlayParams audioPlayParams;
uint8_t* param = &audioPlayParams;
SetParam(module, cmd, param, sizeof(AudioPlayParams));