AXSetVoiceType

Syntax

#include <cafe/ax.h>

#define AX_PB_TYPE_NORMAL   0x0000
#define AX_PB_TYPE_STREAM   0x0001

void AXSetVoiceType(AXVPB *p, u16 type);

Parameters

p Pointer to the voice.
type
AX_PB_TYPE_NORMAL This is the default.
AX_PB_TYPE_STREAM For streaming voices.

Return Values

None.

Description

Applies type to the voice p.

This must be set to AX_PB_TYPE_STREAM when streaming voices in ADPCM format. For more information, see the Voice Type section in the AX Overview.

NOTE:
When processing the last buffer of the stream or if the voice is dropped, voice type needs to be set to AX_PB_TYPE_NORMAL.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

Streaming Overview
AXPBADPCMLOOP

Revision History

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


CONFIDENTIAL