Rate This Document
Findability
Accuracy
Completeness
Readability

Parameter Setting

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

AUDIO_SET_AUDIOPLAY_PARAM

Set module to 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 = AUDIO;
VmiCmd cmd = AUDIO_SET_AUDIOPLAY_PARAM;
AudioPlayParams audioPlayParams;
uint8_t* param = &audioPlayParams;
SetParam(module, cmd, param, sizeof(AudioPlayParams));