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

Go to the source code of this file.

Macros

#define PORTAMENTO_IS_SPECIAL(x)   ((x).mode & 0x80)
 
#define PORTAMENTO_MODE(x)   ((x).mode & ~0x80)
 
#define PORTAMENTO_MODE_1   1
 
#define PORTAMENTO_MODE_2   2
 
#define PORTAMENTO_MODE_3   3
 
#define PORTAMENTO_MODE_4   4
 
#define PORTAMENTO_MODE_5   5
 

Functions

void sequence_channel_init (struct SequenceChannel *seqChannel)
 
s32 seq_channel_set_layer (struct SequenceChannel *seqChannel, s32 layerIndex)
 
void seq_channel_layer_disable (struct SequenceChannelLayer *layer)
 
void seq_channel_layer_free (struct SequenceChannel *seqChannel, s32 layerIndex)
 
void sequence_channel_disable (struct SequenceChannel *seqChannel)
 
struct SequenceChannelallocate_sequence_channel (void)
 
void sequence_player_init_channels (struct SequencePlayer *seqPlayer, u16 channelBits)
 
void sequence_player_disable_channels (struct SequencePlayer *seqPlayer, u16 channelBits)
 
void sequence_channel_enable (struct SequencePlayer *seqPlayer, u8 channelIndex, void *script)
 
void sequence_player_disable (struct SequencePlayer *seqPlayer)
 
void func_800BEF2C (struct SequencePlayer *seqPlayer)
 
void audio_list_push_back (struct AudioListItem *list, struct AudioListItem *item)
 
void * audio_list_pop_back (struct AudioListItem *list)
 
void init_layer_freelist (void)
 
u8 m64_read_u8 (struct M64ScriptState *state)
 
s16 m64_read_s16 (struct M64ScriptState *state)
 
u16 m64_read_compressed_u16 (struct M64ScriptState *state)
 
u8 get_instrument (struct SequenceChannel *seqChannel, u8 instId, struct Instrument **instOut, struct AdsrSettings *adsr)
 
void process_sequences (s32)
 
void set_instrument (struct SequenceChannel *seqChannel, u8 instId)
 
void sequence_channel_set_volume (struct SequenceChannel *seqChannel, u8 volume)
 
void seq_channel_layer_process_script (struct SequenceChannelLayer *layer)
 
void sequence_player_process_sequence (struct SequencePlayer *)
 
void sequence_channel_process_script (struct SequenceChannel *)
 
void init_sequence_player (u32 player)
 
void init_sequence_players (void)
 

Macro Definition Documentation

◆ PORTAMENTO_IS_SPECIAL

#define PORTAMENTO_IS_SPECIAL ( x)    ((x).mode & 0x80)

◆ PORTAMENTO_MODE

#define PORTAMENTO_MODE ( x)    ((x).mode & ~0x80)

◆ PORTAMENTO_MODE_1

#define PORTAMENTO_MODE_1   1

◆ PORTAMENTO_MODE_2

#define PORTAMENTO_MODE_2   2

◆ PORTAMENTO_MODE_3

#define PORTAMENTO_MODE_3   3

◆ PORTAMENTO_MODE_4

#define PORTAMENTO_MODE_4   4

◆ PORTAMENTO_MODE_5

#define PORTAMENTO_MODE_5   5

Function Documentation

◆ allocate_sequence_channel()

struct SequenceChannel * allocate_sequence_channel ( void )
Here is the caller graph for this function:

◆ audio_list_pop_back()

void * audio_list_pop_back ( struct AudioListItem * list)
Here is the caller graph for this function:

◆ audio_list_push_back()

void audio_list_push_back ( struct AudioListItem * list,
struct AudioListItem * item )
Here is the caller graph for this function:

◆ func_800BEF2C()

void func_800BEF2C ( struct SequencePlayer * seqPlayer)

◆ get_instrument()

u8 get_instrument ( struct SequenceChannel * seqChannel,
u8 instId,
struct Instrument ** instOut,
struct AdsrSettings * adsr )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_layer_freelist()

void init_layer_freelist ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_sequence_player()

void init_sequence_player ( u32 player)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_sequence_players()

void init_sequence_players ( void )
Bug
Size of wrong array. Zeroes out second half of gSequenceChannels[0], all of gSequenceChannels[1..31], and part of gSequenceLayers[0]. However, this is only called at startup, so it's harmless.
Here is the call graph for this function:

◆ m64_read_compressed_u16()

u16 m64_read_compressed_u16 ( struct M64ScriptState * state)
Here is the caller graph for this function:

◆ m64_read_s16()

s16 m64_read_s16 ( struct M64ScriptState * state)
Here is the caller graph for this function:

◆ m64_read_u8()

u8 m64_read_u8 ( struct M64ScriptState * state)
Here is the caller graph for this function:

◆ process_sequences()

void process_sequences ( s32 )

◆ seq_channel_layer_disable()

void seq_channel_layer_disable ( struct SequenceChannelLayer * layer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ seq_channel_layer_free()

void seq_channel_layer_free ( struct SequenceChannel * seqChannel,
s32 layerIndex )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ seq_channel_layer_process_script()

void seq_channel_layer_process_script ( struct SequenceChannelLayer * layer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ seq_channel_set_layer()

s32 seq_channel_set_layer ( struct SequenceChannel * seqChannel,
s32 layerIndex )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence_channel_disable()

void sequence_channel_disable ( struct SequenceChannel * seqChannel)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence_channel_enable()

void sequence_channel_enable ( struct SequencePlayer * seqPlayer,
u8 channelIndex,
void * script )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence_channel_init()

void sequence_channel_init ( struct SequenceChannel * seqChannel)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence_channel_process_script()

void sequence_channel_process_script ( struct SequenceChannel * seqChannel)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence_channel_set_volume()

void sequence_channel_set_volume ( struct SequenceChannel * seqChannel,
u8 volume )
Here is the caller graph for this function:

◆ sequence_player_disable()

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

◆ sequence_player_disable_channels()

void sequence_player_disable_channels ( struct SequencePlayer * seqPlayer,
u16 channelBits )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence_player_init_channels()

void sequence_player_init_channels ( struct SequencePlayer * seqPlayer,
u16 channelBits )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sequence_player_process_sequence()

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

◆ set_instrument()

void set_instrument ( struct SequenceChannel * seqChannel,
u8 instId )
Here is the call graph for this function:
Here is the caller graph for this function: