Mario Kart 64
Loading...
Searching...
No Matches
sounds.h
Go to the documentation of this file.
1#ifndef SOUNDS_H
2#define SOUNDS_H
3
5// The sound cue bit fields can be split up into its basic pieces and put back together.
6
7// Sound Magic Definition:
8// First Byte (Upper Nibble): Sound Bank (not the same as audio bank!)
9// First Byte (Lower Nibble): Bitflags for audio playback?
10// Third/Second Byte: Priority
11// Third/Second Byte (Upper Nibble): More bitflags
12// Third/Second Byte (Lower Nibble): Sound Status (this is set to SOUND_STATUS_PLAYING when passed to the audio driver.)
13// Fourth Byte: Sound ID
14#define SOUND_ARG_LOAD(sound_bank, byte2, byte3, sound_id) \
15 ((sound_bank << 24) | (byte2 << 16) | (byte3 << 8) | sound_id)
16
17/* Intro */
18#define SOUND_INTRO_LOGO SOUND_ARG_LOAD(0x49, 0x01, 0x80, 0x08) // SOUND_ARG_LOAD(0x49, 0x01, 0x80, 0x08)
19// Welcome to Mario Kart. Used in intro and credits.
20#define SOUND_INTRO_WELCOME SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x09)
21#define SOUND_INTRO_ENTER_MENU SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x1A)
22
23/* Menus */
24#define SOUND_MENU_OK_CLICKED SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x16)
25
26#define SOUND_MENU_CURSOR_MOVE SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x00)
27#define SOUND_MENU_GO_BACK SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x02)
28// Used elsewhere, seems same as above sound.
29#define SOUND_ACTION_GO_BACK_2 SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x05)
30
31#define SOUND_ACTION_UNKNOWN_CONFIRMATION SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x06)
32
33#define SOUND_MENU_SELECT SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x01)
34
35// Mario Grand Prix
36#define SOUND_MENU_GP SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x0A)
37// Versus
38#define SOUND_MENU_VERSUS SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x0C)
39// Time Trials
40#define SOUND_MENU_TIME_TRIALS SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x0B)
41// Battle
42#define SOUND_MENU_BATTLE SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x0D)
43// Select a level (Select a CC)
44#define SOUND_MENU_SELECT_LEVEL SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x0E)
45// OK?
46#define SOUND_MENU_OK SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x0F)
47
48// Select your player
49#define SOUND_MENU_SELECT_PLAYER SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x12)
50
51// Select map
52#define SOUND_MENU_SELECT_MAP SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x13)
53
54// Plays in option if no controller pak.
55#define SOUND_MENU_FILE_NOT_FOUND SOUND_ARG_LOAD(0x49, 0x00, 0xFF, 0x07)
56
57// Option
58#define SOUND_MENU_OPTION SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x10)
59// Data
60#define SOUND_MENU_DATA SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x11)
61
62// On delete course record?
63#define SOUND_MENU_EXPLOSION SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x1D)
64
65#define SOUND_MENU_STEREO SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x24)
66#define SOUND_MENU_HEADPHONES SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x25)
67#define SOUND_MENU_MONO SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x29)
68
69/* Staging */
70// Red and orange staging lights that Lakitu holds.
71#define SOUND_ACTION_COUNTDOWN_LIGHT SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x03)
72#define SOUND_ACTION_GREEN_LIGHT SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x04)
73// Activates when light turns green.
74#define SOUND_ACTION_REV_ENGINE SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x18)
75#define SOUND_ACTION_REV_ENGINE_2 SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x19)
76
77/* Racing */
78
79// Volume Mode and unknown
80#define SOUND_ACTION_PING SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x1C)
81
82#define SOUND_ACTION_TYRE_SQUEAL SOUND_ARG_LOAD(0x01, 0x00, 0xF9, 0x08)
83
84// Falling rock and bomb sound.
85#define SOUND_ACTION_EXPLOSION SOUND_ARG_LOAD(0x19, 0x00, 0x90, 0x05)
86
87#define SOUND_ACTION_EXPLOSION_2 SOUND_ARG_LOAD(0x19, 0x00, 0xF0, 0x0C)
88
89/* Items */
90// There's likely more of these but they are in func arguments.
91// Did not rename in-case unrelated.
92#define SOUND_ITEM_STAR SOUND_ARG_LOAD(0x31, 0x02, 0x90, 0x08)
93#define SOUND_ITEM_THUNDERBOLT SOUND_ARG_LOAD(0x51, 0x01, 0xC0, 0x0C)
94
95/* Score Screen */
96// Coin pickup sound (perfect fourth; B to E)
97#define SOUND_ACTION_COUNT_SCORE SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x17)
98#define SOUND_ACTION_NEXT_COURSE SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x15)
99// Same sound as ENTER_MENU
100#define SOUND_ACTION_CONTINUE_UNKNOWN SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x1B)
101
102/* Ceremony */
103// Congratulation
104#define SOUND_CEREMONY_CONGRATULATION SOUND_ARG_LOAD(0x49, 0x00, 0x90, 0x14)
105#define SOUND_CEREMONY_BALLOON_POP SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x1E)
106#define SOUND_CEREMONY_FISH SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x1F)
107#define SOUND_CEREMONY_FISH_2 SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x20)
108#define SOUND_CEREMONY_SHOOT_TROPHY SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x21)
109#define SOUND_CEREMONY_PODIUM SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x22)
110
111// The sound of the trophy. Plays in the background
112#define SOUND_CEREMONY_TROPHY SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x23)
113
114/* Credits */
115// Hey, you're very good. See you next time!
116#define SOUND_CREDITS_FAREWELL SOUND_ARG_LOAD(0x49, 0x00, 0x80, 0x26)
117
158
159#endif // SOUNDS_H
MusicSeq
Definition sounds.h:118
@ MUSIC_SEQ_CHOCO_MOUNTAIN
Definition sounds.h:125
@ MUSIC_SEQ_WARIO_STADIUM
Definition sounds.h:123
@ MUSIC_SEQ_AWARD_CEREMONY_4TH_8TH
Definition sounds.h:149
@ MUSIC_SEQ_START_GIRD_TIME_ATTACK
Definition sounds.h:142
@ MUSIC_SEQ_ROYAL_RACEWAY
Definition sounds.h:152
@ MUSIC_SEQ_YOSHI_VALLEY
Definition sounds.h:153
@ MUSIC_SEQ_MAIN_MENU
Definition sounds.h:122
@ MUSIC_SEQ_GAME_OVER
Definition sounds.h:140
@ MUSIC_SEQ_BLOCK_FORT
Definition sounds.h:154
@ MUSIC_SEQ_FINISH_2ND_4TH_PLACE
Definition sounds.h:134
@ MUSIC_SEQ_FINISH_1ST_PLACE
Definition sounds.h:133
@ MUSIC_SEQ_VS_BATTLE_RESULTS
Definition sounds.h:143
@ MUSIC_SEQ_DOUBLE_DECK
Definition sounds.h:155
@ MUSIC_SEQ_RAINBOW_ROAD
Definition sounds.h:138
@ MUSIC_SEQ_DK_JUNGLE
Definition sounds.h:139
@ MUSIC_SEQ_WINNING_RESULTS
Definition sounds.h:136
@ MUSIC_SEQ_START_GRID_GP_VS
Definition sounds.h:131
@ MUSIC_SEQ_KOOPA_TROOPA_BEACH
Definition sounds.h:126
@ MUSIC_SEQ_TITLE_SCREEN
Definition sounds.h:121
@ MUSIC_SEQ_STAR_JINGLE
Definition sounds.h:137
@ MUSIC_SEQ_BOWSERS_CASTLE
Definition sounds.h:129
@ MUSIC_SEQ_SOUND_PLAYER
Definition sounds.h:120
@ MUSIC_SEQ_LOSING_RESULTS
Definition sounds.h:144
@ MUSIC_SEQ_BATTLE_ARENAS
Definition sounds.h:145
@ MUSIC_SEQ_STAFF_ROLL
Definition sounds.h:148
@ MUSIC_SEQ_FINAL_LAP_FANFARE
Definition sounds.h:132
@ MUSIC_SEQ_AWARD_CEREMONY_1ST_3RD
Definition sounds.h:147
@ MUSIC_SEQ_MAX
Definition sounds.h:156
@ MUSIC_SEQ_FRAPPE_SNOWLAND
Definition sounds.h:128
@ MUSIC_SEQ_MOO_MOO_FARM
Definition sounds.h:124
@ MUSIC_SEQ_BANSHEE_BOARDWALK
Definition sounds.h:127
@ MUSIC_SEQ_FINISH_5TH_8TH_PLACE
Definition sounds.h:135
@ MUSIC_SEQ_LUIGI_RACEWAY
Definition sounds.h:150
@ MUSIC_SEQ_KALIMARI_DESERT
Definition sounds.h:130
@ MUSIC_SEQ_UNKNOWN
Definition sounds.h:119
@ MUSIC_SEQ_MARIO_RACEWAY
Definition sounds.h:151
@ MUSIC_SEQ_AWARD_CEREMONY_BUILDUP
Definition sounds.h:146
@ MUSIC_SEQ_TOADS_TURNPIKE
Definition sounds.h:141