AXSetVoiceVe

Syntax

#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);

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

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.

See Also

axvpb.pb.ve, AXSetVoiceVeDelta

Revision History

2006/03/01 Initial version.


CONFIDENTIAL