AXSetVoiceState

Syntax

#include <cafe/ax.h>

#define AX_PB_STATE_STOP    0
#define AX_PB_STATE_RUN     1

void AXSetVoiceState(AXVPB *p, u16 state);

Parameters

p Pointer to the voice.
state Operating state of the voice.

Return Values

None.

Description

Sets the voice to run or stop. Note that the renderer may also change the voice state. For example, after a non-looping voice has reached the end offset of the sound effect, the voice will automatically stop.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

AXIsVoiceRunning
AXSetVoiceLoop

Revision History

2013/05/08 Automated cleanup pass.
2012/01/26 Update to Audio API v2.0.
2011/02/21 Initial Version


CONFIDENTIAL