AXSetVoiceLoopAddr

Syntax

#include <revolution/ax.h>

void AXSetVoiceLoopAddr(AXVPB *pvpb, u32 address);

Arguments

pvpb Pointer to the specified voice.
address New loop-start address.

Return Values

None.

Description

The AXSetVoiceLoopAddr function sets a new start loop address for the specified voice. As an example, consider a synthesizer that supports release loops. Upon encountering a keyoff event, the application could set new loop points using the AXSetVoiceLoopAddr and AXSetVoiceEndAddr functions. This function also asserts the synchronization flag corresponding to axvpb.sync.

Note: The interpretation of the address (by the DSP) will depend on the format of the sample being played by the voice. For example, the address must reference 16-bit words for 16-bit PCM samples, or 4-bit nibbles for ADPCM samples.

See Also

axvpb.pb.addr, AXSetVoiceAddr, AXSetVoiceEndAddr

Revision History

2006/03/01 Initial version.


CONFIDENTIAL