#include <revolution/ax.h>
typedef struct _AXPBVE
{
u16 currentVolume; //.15 volume at start of frame
s16 currentDelta; //signed per-sample delta for currentVolume
} AXPBVE;
void AXSetVoiceVe(AXVPB *pvpb, AXPBVE *ve);
| pvpb | Pointer to the specified voice. |
|---|---|
| ve | Pointer to structure of type AXPBVE. Values are initialized by the user audio application. |
None.
The AXSetVoiceVe function initializes the volume envelope for a voice. If a voice is already running, use the AXSetVoiceVeDelta function to change the volume envelope. This function also asserts the synchronization flag corresponding to axvpb.sync.
axvpb.pb.ve, AXSetVoiceVeDelta
2006/03/01 Initial version.
CONFIDENTIAL