#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);
|p||Pointer to the voice.|
Selects the type of converter that will be used for SRC (pitch bending) for the specified voice.
||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).|
||Linear interpolation. Low computational load.|
||Applies a low-pass filter with 8KHz cut-off frequency and -3dB/octave roll-off.|
||Applies a low-pass filter with 12KHz cut-off frequency and -3dB/octave roll-off.|
||Applies a low-pass filter with 16KHz cut-off frequency and -3dB/octave roll-off.|
AX_SRC_TYPE_4TAP_16Ksample rate converters are provided for legacy support. They provide compatibility with audio content authored for older console systems.
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