#include <cafe/ax.h> void AXSetMultiVoiceVe(AXMVPB *mv, const AXPBVE *ve);
|mv||Pointer to the specified multi-voice.|
|ve||Pointer to structure of type
AXSetMultiVoiceVe sets the volume envelope settings for each voice of a multi-voice. The envelope settings include the following.
|currentDelta||The value of currentDelta is added to the currentVolume for each audio sample that the voice plays in the next frame. Use this setting to prevent zipping artifacts when making large volume changes.|
To ramp the volume of a voice between two values over the course of a single audio frame, set the currentDelta as follows.
currentDelta = (TargetVolume - CurrentVolume) / AX_IN_SAMPLES_PER_FRAME
When using the voice delta alone, there is a limit to the precision with which the volume of the voice may be changed. To set the volume to the exact target volume, it is recommended that
AXSetMultiVoiceVe be called in the next frame.
To change only the volume delta value, use
2014/08/20 Removal of struct; defined elsewhere.
2013/10/20 Initial version.