AXSetVoiceLoop

Syntax

#include <cafe/ax.h>

#define AXPBADDR_LOOP_OFF   0
#define AXPBADDR_LOOP_ON    1

void AXSetVoiceLoop(AXVPB *p, u16 loop);

Parameters

p Pointer to the specified voice.
loop Either AXPBADDR_LOOP_OFF or AXPBADDR_LOOP_ON.

Return Values

None.

Description

Sets the loop flag for a specified voice.

If AXPBADDR_LOOP_ON is asserted, the voice will loop according to the parameters conveyed by the AXPBOFFSET data structure: when endOffset is reached, playback will continue from loopOffset. If AXPBADDR_LOOP_OFF is asserted, the voice will play until the end offset is reached and terminate.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

AXPBOFFSET
AXSetVoiceOffsets
AXSetVoiceLoopOffset
AXSetVoiceLoopOffsetEx

Revision History

2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup Pass.
2006/03/01 Initial version.


CONFIDENTIAL