Mario Kart 64
Loading...
Searching...
No Matches
effects.h File Reference
#include "audio/internal.h"
Include dependency graph for effects.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADSR_STATE_DISABLED   0
 
#define ADSR_STATE_INITIAL   1
 
#define ADSR_STATE_START_LOOP   2
 
#define ADSR_STATE_LOOP   3
 
#define ADSR_STATE_FADE   4
 
#define ADSR_STATE_HANG   5
 
#define ADSR_STATE_DECAY   6
 
#define ADSR_STATE_RELEASE   7
 
#define ADSR_STATE_SUSTAIN   8
 
#define ADSR_ACTION_RELEASE   0x10
 
#define ADSR_ACTION_DECAY   0x20
 
#define ADSR_ACTION_HANG   0x40
 
#define ADSR_DISABLE   0
 
#define ADSR_HANG   -1
 
#define ADSR_GOTO   -2
 
#define ADSR_RESTART   -3
 
#define BSWAP16(x)   (((x) & 0xff) << 8 | (((x) >> 8) & 0xff))
 

Functions

void sequence_channel_process_sound (struct SequenceChannel *seqChannel, s32 recalculateVolume)
 
void sequence_player_process_sound (struct SequencePlayer *seqPlayer)
 
f32 get_portamento_freq_scale (struct Portamento *p)
 
s16 get_vibrato_pitch_change (struct VibratoState *vib)
 
f32 get_vibrato_freq_scale (struct VibratoState *vib)
 
void note_vibrato_update (struct Note *note)
 
void note_vibrato_init (struct Note *note)
 
void adsr_init (struct AdsrState *adsr, struct AdsrEnvelope *envelope, s16 *volOut)
 
f32 adsr_update (struct AdsrState *adsr)
 

Macro Definition Documentation

◆ ADSR_ACTION_DECAY

#define ADSR_ACTION_DECAY   0x20

◆ ADSR_ACTION_HANG

#define ADSR_ACTION_HANG   0x40

◆ ADSR_ACTION_RELEASE

#define ADSR_ACTION_RELEASE   0x10

◆ ADSR_DISABLE

#define ADSR_DISABLE   0

◆ ADSR_GOTO

#define ADSR_GOTO   -2

◆ ADSR_HANG

#define ADSR_HANG   -1

◆ ADSR_RESTART

#define ADSR_RESTART   -3

◆ ADSR_STATE_DECAY

#define ADSR_STATE_DECAY   6

◆ ADSR_STATE_DISABLED

#define ADSR_STATE_DISABLED   0

◆ ADSR_STATE_FADE

#define ADSR_STATE_FADE   4

◆ ADSR_STATE_HANG

#define ADSR_STATE_HANG   5

◆ ADSR_STATE_INITIAL

#define ADSR_STATE_INITIAL   1

◆ ADSR_STATE_LOOP

#define ADSR_STATE_LOOP   3

◆ ADSR_STATE_RELEASE

#define ADSR_STATE_RELEASE   7

◆ ADSR_STATE_START_LOOP

#define ADSR_STATE_START_LOOP   2

◆ ADSR_STATE_SUSTAIN

#define ADSR_STATE_SUSTAIN   8

◆ BSWAP16

#define BSWAP16 ( x)    (((x) & 0xff) << 8 | (((x) >> 8) & 0xff))

Function Documentation

◆ adsr_init()

void adsr_init ( struct AdsrState * adsr,
struct AdsrEnvelope * envelope,
s16 * volOut )

◆ adsr_update()

f32 adsr_update ( struct AdsrState * adsr)
Here is the caller graph for this function:

◆ get_portamento_freq_scale()

f32 get_portamento_freq_scale ( struct Portamento * p)
Here is the caller graph for this function:

◆ get_vibrato_freq_scale()

f32 get_vibrato_freq_scale ( struct VibratoState * vib)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_vibrato_pitch_change()

s16 get_vibrato_pitch_change ( struct VibratoState * vib)
Here is the caller graph for this function:

◆ note_vibrato_init()

void note_vibrato_init ( struct Note * note)
Here is the caller graph for this function:

◆ note_vibrato_update()

void note_vibrato_update ( struct Note * note)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence_channel_process_sound()

void sequence_channel_process_sound ( struct SequenceChannel * seqChannel,
s32 recalculateVolume )
Here is the caller graph for this function:

◆ sequence_player_process_sound()

void sequence_player_process_sound ( struct SequencePlayer * seqPlayer)
Here is the call graph for this function:
Here is the caller graph for this function: