AXSetVoiceRmtIIRCoefs

Syntax

#include <cafe/ax.h>

#define AX_PB_LPF_ON            0x0001
#define AX_PB_BIQUAD_ON         0x0002

void AXSetVoiceRmtIIRCoefs(AXVPB *p, u16 type, ...);

Parameters

p Pointer to the specified voice.
type Specifies the filter type.
... Specifies the filter coefficients corresponding to the filter type.

NOTE:
PPC does not currently implement remote IIR.

Return Values

None.

Description

Initializes filter coefficient values for the Wii Remote controller output devices for voice p.

The filter type argument must correspond to the type established by the iir data structure in the call to AXSetVoiceRmtIIR.

Specifying coefficients within the argument list of AXSetVoiceRmtIIRCoefs depends on the type of filter.

For AX_PB_LPF_ON, use:

AXSetVoiceRmtIIRCoefs(p, AX_PB_LPF_ON, a0, b0);

For AX_PB_BIQUAD_ON, use:

AXSetVoiceRmtIIRCoefs(p, AX_PB_BIQUAD_ON, b0, b1, b2, a1, a2);
NOTE:
Both filter types cannot be used at the same time.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

Filtering
AXSetVoiceRmtIIR
AXSetVoiceRmtOn

Revision History

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


CONFIDENTIAL