#include <revolution/ax.h> void AXSetVoiceLoopAddr(AXVPB *pvpb, u32 address);
| pvpb | Pointer to the specified voice. |
|---|---|
| address | New loop-start address. |
None.
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.
axvpb.pb.addr, AXSetVoiceAddr, AXSetVoiceEndAddr
2006/03/01 Initial version.
CONFIDENTIAL