diff --git a/include/sounds.h b/include/sounds.h index e186684e97..5e891db762 100644 --- a/include/sounds.h +++ b/include/sounds.h @@ -555,6 +555,7 @@ enum SoundBank { #define SOUND_MENU_HIGH_SCORE /* 0x70222081 */ SOUND_ARG_LOAD(SOUND_BANK_MENU, 0x22, 0x20, SOUND_DISCRETE) // unverified #define SOUND_MENU_STAR_SOUND_OKEY_DOKEY /* 0x7023FF81 */ SOUND_ARG_LOAD(SOUND_BANK_MENU, 0x23, 0xFF, SOUND_DISCRETE) #define SOUND_MENU_STAR_SOUND_LETS_A_GO /* 0x7024FF81 */ SOUND_ARG_LOAD(SOUND_BANK_MENU, 0x24, 0xFF, SOUND_DISCRETE) +#define SOUND_MENU_CRITICAL_ERROR SOUND_ARG_LOAD(SOUND_BANK_MENU, 0x40, 0xFF, SOUND_DISCRETE) // US/EU only; an index between 0-7 or 0-4 is added to the sound ID before // playing, producing the same sound with different pitch. diff --git a/sound/sequences/00_sound_player.s b/sound/sequences/00_sound_player.s index cad642171d..a496db34e3 100644 --- a/sound/sequences/00_sound_player.s +++ b/sound/sequences/00_sound_player.s @@ -6986,6 +6986,42 @@ sound_ref .sound_menu_power_meter sound_ref .sound_menu_camera_buzz sound_ref .sound_menu_camera_turn +// Crash screen error sfx + +sound_ref .sound_menu_critical_error + +.envelope_critical_error: +envelope_line 1 32760 +envelope_line 128 0 +envelope_line 500 500 +envelope_goto 4 + +.layer_critical_error_0: +layer_note1 3, 0x3f, 115 +layer_end + +.layer_critical_error_1: +layer_note1 15, 0x3f, 115 +layer_end + +.layer_critical_error_2: +layer_note1 34, 0x3f, 115 +layer_end + +.layer_critical_error_3: +layer_note1 39, 0x3f, 115 +layer_end + +.sound_menu_critical_error: +chan_setbank 9 +chan_setinstr 0 +chan_setenvelope .envelope_critical_error +chan_setlayer 0, .layer_critical_error_0 +chan_setlayer 1, .layer_critical_error_1 +chan_setlayer 2, .layer_critical_error_2 +chan_setlayer 3, .layer_critical_error_3 +chan_end + .sound_menu_change_select: chan_setbank 9 chan_setinstr 1 diff --git a/src/game/crash_screen.c b/src/game/crash_screen.c index 6b199da916..2f180cb67f 100644 --- a/src/game/crash_screen.c +++ b/src/game/crash_screen.c @@ -419,7 +419,7 @@ void thread2_crash_screen(UNUSED void *arg) { stop_background_music(sBackgroundMusicQueue[0].seqId); audio_signal_game_loop_tick(); crash_screen_sleep(200); - play_sound(SOUND_MARIO_WAAAOOOW, gGlobalSoundSource); + play_sound(SOUND_MENU_CRITICAL_ERROR, gGlobalSoundSource); audio_signal_game_loop_tick(); crash_screen_sleep(200); continue; diff --git a/src/game/game_init.c b/src/game/game_init.c index bec0cfd3ec..fecbe31ab8 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -831,12 +831,6 @@ void thread5_game_loop(UNUSED void *arg) { // amount of free space remaining. print_text_fmt_int(180, 20, "BUF %d", gGfxPoolEnd - (u8 *) gDisplayListHead); } -#endif -#if 0 - if (gPlayer1Controller->buttonPressed & L_TRIG) { - osStartThread(&hvqmThread); - osRecvMesg(&gDmaMesgQueue, NULL, OS_MESG_BLOCK); - } #endif } }