AXSetVoiceVeDelta

Syntax

#include <cafe/ax.h>

void AXSetVoiceVeDelta(AXVPB *p, s16 delta);

Parameters

p Pointer to the voice.
delta New delta value.

Return Values

None.

Description

Sets the currentDelta of the volume envelope for a given voice. The currentDelta value is added to the currentVolume for each sample that the voice plays in the next audio frame. For more information, see AXSetVoiceVe.

The currentDelta for a voice continues to be applied to each frame until it is set to 0 by AXSetVoiceVe or AXSetVoiceVeDelta.

NOTE:
The renderer does not clamp the volume envelope calculation. The application must ensure that the resulting currentVolume remains within bounds.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

AXPBVE
AXSetVoiceVe

Revision History

2013/10/15 Updated for accuracy.
2013/08/30 Edited for clarity.
2013/05/08 Automated cleanup pass.
2012/01/26 Update to Audio API v2.0.
2011/02/21 Initial Version


CONFIDENTIAL