AXSetVoiceVe

C Specification

#include <revolution.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);

Arguments

pvpb Pointer to the specified voice.
ve Pointer to structure of type AXPBVE. Values are initialized by the user audio application.

Return Values

None.

Description

AXSetVoiceVe() initializes the volume envelope for a voice. If a voice is already running, use AXSetVoiceVeDelta() to change the volume envelope. This function also asserts the appropriate synchronization flags in axvpb.sync.

See Also

axvpb.pb.ve
AXSetVoiceVeDelta

Revision History

03/01/2006 Initial version.