AXSetVoiceSrcType

Syntax

#include <cafe/ax.h>

#define AX_SRC_TYPE_NONE        0  //bypass SRC
#define AX_SRC_TYPE_LINEAR      1  //linear interpolation
#define AX_SRC_TYPE_4TAP_8K     2  //4 tap polyphase, roll off at 8kHz
#define AX_SRC_TYPE_4TAP_12K    3  //4 tap polyphase, roll off at 12kHz (same as N64)
#define AX_SRC_TYPE_4TAP_16K    4  //4 tap polyphase, roll off at 16kHz

void AXSetVoiceSrcType  (AXVPB *p, u32 type);

Parameters

p Pointer to the voice.
type SRC type.

Return Values

None.

Description

Selects the type of converter that will be used for SRC (pitch bending) for the specified voice.

AX_SRC_TYPE_NONE Bypasses the pitch-bend (SRC) stage entirely. Due to the reduced computation cost, this type is highly recommended for sounds which do not need pitch-modulation (such as streaming music).
AX_SRC_TYPE_LINEAR Linear interpolation. Low computational load.
AX_SRC_TYPE_4TAP_8K Applies a low-pass filter with 8KHz cut-off frequency and -3dB/octave roll-off.
AX_SRC_TYPE_4TAP_12K Applies a low-pass filter with 12KHz cut-off frequency and -3dB/octave roll-off.
AX_SRC_TYPE_4TAP_16K Applies a low-pass filter with 16KHz cut-off frequency and -3dB/octave roll-off.
NOTE:
The AX_SRC_TYPE_4TAP_8K, AX_SRC_TYPE_4TAP_12K, and AX_SRC_TYPE_4TAP_16K sample rate converters are provided for legacy support. They provide compatibility with audio content authored for older console systems.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

AXPBSRC
AXSetVoiceSrc
AXSetVoiceSrcRatio

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