AXFX_DELAY/AXFX_DELAY_DPL2

Syntax

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

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

typedef struct AXFX_DELAY
{
    // do not touch these!
    s32       *line[3];
    
       (omitted)
       
    u32        active;
    
    // user parameters
    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];
    
       (omitted)
       
    u32        active;
    
    // user parameters
    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, you must 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). In the case of Dolby Pro Logic II, the order is (Left Front) (Right Front) (Left Rear) (Right Rear).

See Also

Revision History

2007/08/06 Initial version.


CONFIDENTIAL