AXFX_DELAY/AXFX_DELAY_DPL2

Syntax

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

/*----------------------------------------------*
    For mono, stereo, surround
 *----------------------------------------------*/

typedef struct AXFX_DELAY
{
    // do not touch these!
    s32       *line[3];
    u32        curPos[3];
    u32        length[3];
    s32        feedbackGain[3];
    s32        outGain[3];
    u32        active;

    // user params
    u32        delay[3];       // Delay buffer length in ms per channel
    u32        feedback[3];    // Feedback volume in % per channel
    u32        output[3];      // Output volume in % per channel

} AXFX_DELAY;

/*----------------------------------------------*
    For Dolby Pro Logic II
 *----------------------------------------------*/

typedef struct AXFX_DELAY_DPL2
{
    // do not touch these!
    s32       *line[4];
    u32        curPos[4];
    u32        length[4];
    s32        feedbackGain[4];
    s32        outGain[4];
    u32        active;

    // user params
    u32        delay[4];       // Delay buffer length in ms per channel
    u32        feedback[4];    // Feedback volume in % per channel
    u32        output[4];      // Output volume in % per channel

} AXFX_DELAY_DPL2;

Elements

delay Length of the delay line (=delay time of input audio). Specify a value greater than 0 (units of msec).
feedback Feedback gain. Specify a value in percent (%) such that value < 100.
output Output gain. Specify a value in percent (%) such that value <= 100.

Description

When using Delay, assign appropriate values to the various parameters of the AXFX_DELAY or AXFX_DELAY_DPL2 structure. Normally, the AXFX_DELAY structure is used, while the AXFX_DELAY_DPL2 structure is used with Dolby Pro Logic II.

NOTE:
All the various parameters must be set for each channel, in the channel order (Left) (Right) (Surround). For Dolby Pro Logic II, the order is (Left Front) (Right Front) (Left Rear) (Right Rear).

Revision History

2013/05/08 Automated cleanup pass.
2007/08/06 Initial version.


CONFIDENTIAL