AXFX2DelayCallback

Syntax

#include <cafe.h>
#include <cafe/axfx.h>

typedef struct _AXFX_6CH_BUFFERUPDATE
{
    s32 *L;
    s32 *R;
    s32 *Ls;
    s32 *Rs;
    s32 *Ct;
    s32 *Sw;
} AXFX_6CH_BUFFERUPDATE;

void AXFX2DelayCallback  (AXFX_6CH_BUFFERUPDATE *bufferUpdate, AXFX2_DELAY *delay,
                          AXAUXCBSTRUCT *info);

Parameters

bufferUpdate Pointer to the buffers structure to be updated.
delay Pointer to an initialized AXFX2_DELAY structure.
info Pointer to a struct AXAUXCBSTRUCT specifying the number of channels and samples in bufferUpdate.

Return Values

None.

Description

The AXFX2DelayCallback function is an AUX callback for the delay effect. It applies a delay effect to the audio channels in AXFX_6CH_BUFFERUPDATE. The number of channels affected and the audio sample rate is specified via the parameters originally passed to AXFX2DelayInit.

This function and an initialized AXFX2_DELAY structure must be registered to an AUX bus through the AXRegisterAuxCallback function.

For a demonstration of the usage of this effect, see axfx2effects.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 No

Do Not Call From

None.

See Also

AXFX2 Delay Overview
AXFX2_DELAY
AXFX2DelayGetMemSize
AXFX2DelayInit
AXFX2DelayShutdown
AXFX2DelaySettings
AXFX2DelaySettingsUpdate
AXFX2DelaySettingsUpdateNoReset
axfx2effects Demo
AXRegisterAuxCallback

Revision History

2013/12/12 New max_delay_time parameter.
2013/08/26 Initial version.


CONFIDENTIAL