AXSetVoiceLpfCoefs

Syntax

#include <cafe/ax.h>

void AXSetVoiceLpfCoefs(AXVPB *p, u16 a0, u16 b0);

Parameters

p Pointer to the voice.
a0 Fixed-point (one bit integer, 15 bits fraction) coefficient.
b0 Fixed-point (one bit integer, 15 bits fraction) coefficient.

Return Values

None.

Description

Applies low-pass filter (LPF) coefficients to an active voice.

Use the AXSetVoiceLpf function to enable or disable the low-pass filter. For more information, see the low-pass filter parameter definition and the Filtering Overview.

To generate coefficients for a particular cut-off frequency at runtime, see the AXComputeLpfCoefs function.

CAUTION:
Due to the difference in PPC and DSP architectures, PPC being a floating-point processor and DSP a fixed point processor, the output of a voice processed on PPC might sound different than the same voice processed on DSP. This is especially true when using biquad and LPF filters. DSP has a 16-bit width to represent coefficients. This limitation imposes restrictions on the realization of stable filters for extreme cut-off filters.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

AXPBLPF
Filtering Overview
AXSetVoiceBiquad
AXSetVoiceBiquadCoefs
AXSetVoiceLpf
AXComputeLpfCoefs

Revision History

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


CONFIDENTIAL