papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
reverb.c File Reference

Macros

#define SWAP16(in, out)
 
#define CONVERT   173123.404906676
 
#define SCALE   16384
 
#define INPUT_PARAM   0
 
#define OUTPUT_PARAM   1
 
#define FBCOEF_PARAM   2
 
#define FFCOEF_PARAM   3
 
#define GAIN_PARAM   4
 
#define CHORUSRATE_PARAM   5
 
#define CHORUSDEPTH_PARAM   6
 
#define LPFILT_PARAM   7
 

Functions

void au_fx_create (AuFX *fx, u8 effectType, ALHeap *heap)
 
void au_filter_create (AuFilter *filter, ALHeap *heap)
 
void au_filter_init (AuFilter *filter, s16 arg1, s16 arg2, s16 cutoff)
 
void au_fx_load_preset (AuFX *fx, u8 effectType)
 
Acmdau_pull_fx (AuFX *fx, Acmd *ptr, s16 wetDmem, s16 tempDmem)
 Applies a chain of delay-line based effects to audio and mixes into output.
 
s32 au_fx_param_hdl (AuFX *fx, s16 index, s16 paramID, s32 value)
 

Variables

s32 SMALL_ROOM_PARAMS []
 
s32 BIG_ROOM_PARAMS []
 
s32 D_8007F0C0 []
 
s32 ECHO_PARAMS []
 
s32 CHORUS_PARAMS []
 
s32 FLANGE_PARAMS []
 
s32 NULL_PARAMS []
 
s32AU_FX_CUSTOM_PARAMS []
 

Macro Definition Documentation

◆ CHORUSDEPTH_PARAM

#define CHORUSDEPTH_PARAM   6

Referenced by au_fx_param_hdl().

◆ CHORUSRATE_PARAM

#define CHORUSRATE_PARAM   5

Referenced by au_fx_param_hdl().

◆ CONVERT

#define CONVERT   173123.404906676

◆ FBCOEF_PARAM

#define FBCOEF_PARAM   2

Referenced by au_fx_param_hdl().

◆ FFCOEF_PARAM

#define FFCOEF_PARAM   3

Referenced by au_fx_param_hdl().

◆ GAIN_PARAM

#define GAIN_PARAM   4

Referenced by au_fx_param_hdl().

◆ INPUT_PARAM

#define INPUT_PARAM   0

Referenced by au_fx_param_hdl().

◆ LPFILT_PARAM

#define LPFILT_PARAM   7

Referenced by au_fx_param_hdl().

◆ OUTPUT_PARAM

#define OUTPUT_PARAM   1

Referenced by au_fx_param_hdl().

◆ SCALE

#define SCALE   16384

◆ SWAP16

#define SWAP16 ( in,
out )
Value:
{ \
s16 t = out; \
out = in; \
in = t; \
}
BSS s32 PopupMenu_SelectedIndex
Definition 8a860_len_3f30.c:84

Referenced by au_pull_fx().

Function Documentation

◆ au_filter_create()

void au_filter_create ( AuFilter * filter,
ALHeap * heap )

◆ au_filter_init()

void au_filter_init ( AuFilter * filter,
s16 arg1,
s16 arg2,
s16 cutoff )

Referenced by au_filter_create().

◆ au_fx_create()

void au_fx_create ( AuFX * fx,
u8 effectType,
ALHeap * heap )
Parameters
effectTypefrom enum AuEffectType

Referenced by au_driver_init().

◆ au_fx_load_preset()

void au_fx_load_preset ( AuFX * fx,
u8 effectType )

Referenced by au_bus_set_effect(), and au_fx_create().

◆ au_fx_param_hdl()

s32 au_fx_param_hdl ( AuFX * fx,
s16 index,
s16 paramID,
s32 value )

Referenced by au_bus_set_fx_params().

◆ au_pull_fx()

Acmd * au_pull_fx ( AuFX * fx,
Acmd * ptr,
s16 wetDmem,
s16 tempDmem )

Applies a chain of delay-line based effects to audio and mixes into output.

For each delay tap in the FX chain:

  • Loads delay input/output from circular buffer.
  • Applies optional modulation and resampling.
  • Applies feedforward/feedback mixing.
  • Applies optional lowpass filtering.
  • Mixes result into wet output buffer.
Parameters
fxPointer to FX state (delay taps, buffers, etc.)
ptrPointer to the current audio command list position.
wetDmemDMEM offset to mix wet output into.
tempDmemBase DMEM offset for temporary working buffers.
Returns
Updated command list pointer.

Referenced by alAudioFrame().

Variable Documentation

◆ AU_FX_CUSTOM_PARAMS

s32* AU_FX_CUSTOM_PARAMS[]
Initial value:
= {
}
s32 NULL_PARAMS[]
Definition reverb.c:97

Referenced by au_fx_load_preset(), and au_sfx_set_reverb_type().

◆ BIG_ROOM_PARAMS

s32 BIG_ROOM_PARAMS[]
Initial value:
= {
4, 14,
0, 9, 9830, -9830, 0, 0, 0, 0,
2, 6, 3276, -3276, 0x3FFF, 0, 0, 0,
9, 12, 3276, -3276, 0x3FFF, 0, 0, 0,
0, 13, 6000, 0, 0, 0, 0, 0x5000
}

Referenced by au_fx_load_preset().

◆ CHORUS_PARAMS

s32 CHORUS_PARAMS[]
Initial value:
= {
1, 3,
0, 1, 16384, 0, 0x7FFF, 7600, 700, 0
}

Referenced by au_fx_load_preset().

◆ D_8007F0C0

s32 D_8007F0C0[]
Initial value:
= {
4, 17,
0, 11, 9830, -9830, 0, 0, 0, 0,
4, 9, 3276, -3276, 0x3FFF, 0, 0, 0,
11, 15, 3276, -3276, 0x3FFF, 0, 0, 0,
0, 16, 8000, 0, 0, 0, 0, 0x5000
}

◆ ECHO_PARAMS

s32 ECHO_PARAMS[]
Initial value:
= {
1, 14,
0, 13, 20000, 0, 0x7FFF, 0, 0, 0x7FFF
}

Referenced by au_fx_load_preset().

◆ FLANGE_PARAMS

s32 FLANGE_PARAMS[]
Initial value:
= {
1, 3,
0, 1, 0, 0x5FFF, 0x7FFF, 380, 500, 0
}

Referenced by au_fx_load_preset().

◆ NULL_PARAMS

s32 NULL_PARAMS[]
Initial value:
= {
0, 0,
0, 0, 0, 0, 0, 0, 0, 0
}

Referenced by au_fx_load_preset().

◆ SMALL_ROOM_PARAMS

s32 SMALL_ROOM_PARAMS[]
Initial value:
= {
3, 11,
0, 9, 9830, -9830, 0, 0, 0, 0,
3, 7, 3276, -3276, 0x3FFF, 0, 0, 0,
0, 10, 5000, 0, 0, 0, 0, 0x5000
}

Referenced by au_fx_load_preset().