Go to the source code of this file.
Macros | |
#define | MAX_SOUND_INSTANCES 10 |
#define | SOUND_LOOP_IDX(soundID) (soundID & 0xFFFF) |
#define | SEQ_SOUND_ENTRY(soundID, sym) [soundID & 0xFFFF] { .sounds = sym, .soundCount = ARRAY_COUNT(sym) } |
Functions | |
void | sfx_compute_spatialized_sound_params_full (f32 x, f32 y, f32 z, s16 *volume, s16 *pan, s32 flags) |
void | sfx_reset_door_sounds (void) |
void | sfx_clear_sounds (void) |
void | sfx_clear_env_sounds (s16 playSounds) |
void | sfx_update_env_sound_params (void) |
void | sfx_set_reverb_mode (s32 mode) |
s32 | sfx_get_reverb_mode (void) |
void | sfx_stop_env_sounds (void) |
SoundInstance * | sfx_get_env_sound_instance (s32 soundID) |
void | sfx_play_sound_looping (s32 soundID, u8 volume, u8 pan, s16 pitchShift) |
void | sfx_register_looping_sound_at_position (s32 soundID, s32 flags, f32 x, f32 y, f32 z) |
s32 | sfx_adjust_env_sound_pos (s32 soundID, s32 sourceFlags, f32 x, f32 y, f32 z) |
void | snd_stop_tracking_env_sound_pos (s32 soundID, s32 keepPlaying) |
void | sfx_play_sound_with_params (s32 soundID, u8 volume, u8 pan, s16 pitchShift) |
void | sfx_adjust_env_sound_params (s32 soundID, u8 volume, u8 pan, s16 pitchShift) |
void | sfx_stop_sound (s32 soundID) |
void | sfx_play_sound (s32 soundID) |
void | sfx_play_sound_at_player (s32 soundID, s32 flags) |
void | sfx_play_sound_at_npc (s32 soundID, s32 flags, s32 npcID) |
void | sfx_play_sound_at_position (s32 soundID, s32 flags, f32 posX, f32 posY, f32 posZ) |
void | sfx_get_spatialized_sound_params (f32 x, f32 y, f32 z, s16 *volume, s16 *pan, s32 flags) |
void | sfx_compute_spatialized_sound_params_ignore_depth (f32 x, f32 y, f32 z, s16 *volume, s16 *pan) |
void | sfx_compute_spatialized_sound_params_with_depth (f32 x, f32 y, f32 z, s16 *volume, s16 *pan) |
#define MAX_SOUND_INSTANCES 10 |
Definition at line 4 of file sfx.c.
Referenced by sfx_clear_env_sounds(), sfx_get_env_sound_instance(), sfx_play_sound_looping(), sfx_register_looping_sound_at_position(), sfx_stop_env_sounds(), and sfx_update_env_sound_params().
#define SEQ_SOUND_ENTRY | ( | soundID, | |
sym ) [soundID & 0xFFFF] { .sounds = sym, .soundCount = ARRAY_COUNT(sym) } |
void sfx_compute_spatialized_sound_params_full | ( | f32 | x, |
f32 | y, | ||
f32 | z, | ||
s16 * | volume, | ||
s16 * | pan, | ||
s32 | flags ) |
Definition at line 217 of file sfx.c.
Referenced by sfx_get_spatialized_sound_params().
void sfx_reset_door_sounds | ( | void | ) |
Definition at line 299 of file sfx.c.
Referenced by load_map_by_IDs(), and sfx_clear_sounds().
void sfx_clear_sounds | ( | void | ) |
Definition at line 304 of file sfx.c.
Referenced by load_engine_data(), and state_step_startup().
void sfx_clear_env_sounds | ( | s16 | playSounds | ) |
Definition at line 313 of file sfx.c.
Referenced by load_map_by_IDs(), state_step_battle(), state_step_end_battle(), state_step_pause(), and state_step_unpause().
void sfx_update_env_sound_params | ( | void | ) |
Definition at line 334 of file sfx.c.
Referenced by step_game_loop().
void sfx_set_reverb_mode | ( | s32 | mode | ) |
Definition at line 352 of file sfx.c.
Referenced by load_map_by_IDs(), sfx_clear_sounds(), state_init_title_screen(), state_step_pause(), and state_step_unpause().
s32 sfx_get_reverb_mode | ( | void | ) |
Definition at line 357 of file sfx.c.
Referenced by state_step_pause().
void sfx_stop_env_sounds | ( | void | ) |
Definition at line 361 of file sfx.c.
Referenced by load_map_by_IDs(), state_step_battle(), state_step_end_battle(), state_step_pause(), and step_game_loop().
SoundInstance * sfx_get_env_sound_instance | ( | s32 | soundID | ) |
Definition at line 379 of file sfx.c.
Referenced by sfx_adjust_env_sound_params(), sfx_adjust_env_sound_pos(), and snd_stop_tracking_env_sound_pos().
void sfx_play_sound_looping | ( | s32 | soundID, |
u8 | volume, | ||
u8 | pan, | ||
s16 | pitchShift ) |
Definition at line 392 of file sfx.c.
Referenced by sfx_play_sound_with_params().
void sfx_register_looping_sound_at_position | ( | s32 | soundID, |
s32 | flags, | ||
f32 | x, | ||
f32 | y, | ||
f32 | z ) |
Definition at line 411 of file sfx.c.
Referenced by sfx_play_sound_at_position().
s32 sfx_adjust_env_sound_pos | ( | s32 | soundID, |
s32 | sourceFlags, | ||
f32 | x, | ||
f32 | y, | ||
f32 | z ) |
Definition at line 431 of file sfx.c.
Referenced by SentinelAI_Descend().
void snd_stop_tracking_env_sound_pos | ( | s32 | soundID, |
s32 | keepPlaying ) |
Definition at line 447 of file sfx.c.
Referenced by func_802BB34C_E2DC7C(), and sfx_stop_sound().
void sfx_play_sound_with_params | ( | s32 | soundID, |
u8 | volume, | ||
u8 | pan, | ||
s16 | pitchShift ) |
Definition at line 458 of file sfx.c.
Referenced by _update_message(), msg_copy_to_print_buffer(), msg_play_speech_sound(), sfx_play_sound(), sfx_play_sound_at_position(), update(), and update_riding_physics().
void sfx_adjust_env_sound_params | ( | s32 | soundID, |
u8 | volume, | ||
u8 | pan, | ||
s16 | pitchShift ) |
Definition at line 492 of file sfx.c.
Referenced by update().
void sfx_stop_sound | ( | s32 | soundID | ) |
Definition at line 507 of file sfx.c.
Referenced by action_update_spin(), free(), phys_update_action_state(), pre_battle(), pre_battle(), SentinelAI_LosePlayerInit(), set_action_state(), update(), and update_encounters_pre_battle().
void sfx_play_sound | ( | s32 | soundID | ) |
Definition at line 517 of file sfx.c.
Referenced by _use_partner_ability(), btl_main_menu_update(), btl_state_update_begin_player_turn(), btl_state_update_celebration(), btl_state_update_defeat(), btl_state_update_partner_menu(), btl_state_update_partner_move(), btl_state_update_player_menu(), btl_state_update_player_move(), btl_state_update_run_away(), btl_state_update_select_target(), btl_submenu_moves_update(), btl_update_ko_status(), btl_update_strats_menu(), calc_player_damage_enemy(), can_open_world_menu(), check_input_open_menus(), check_input_status_bar(), coin_counter_draw_content(), entity_BlueWarpPipe_enter_pipe_init(), entity_Chest_begin_opening(), entity_CymbalPlant_idle(), entity_HeartBlockContent__anim_heal(), entity_HiddenPanel_flip_over(), entity_Padlock_idle(), entity_SaveBlock_show_result_message(), entity_StarBoxLauncher_launch(), entity_WoodenCrate_idle(), filemenu_choose_name_handle_input(), filemenu_main_handle_input(), filemenu_yesno_handle_input(), func_800F16CC(), func_802BB34C_E2DC7C(), func_802BC3E4_E2ED14(), hud_element_update(), inflict_partner_ko(), partner_use_ability(), pause_badges_handle_input(), pause_handle_input(), pause_init(), pause_items_handle_input(), pause_map_handle_input(), pause_partners_handle_input(), pause_spirits_handle_input(), pause_stats_handle_input(), pause_tabs_handle_input(), pause_tutorial_input(), popup_menu_update(), remove_player_buffs(), should_cancel_open_world_menu(), state_step_title_screen(), step_entity_commandlist(), update(), update_encounters_neutral(), update_item_entity_pickup(), and update_status_bar().
void sfx_play_sound_at_player | ( | s32 | soundID, |
s32 | flags ) |
Definition at line 521 of file sfx.c.
Referenced by action_hammer_end_swing(), action_hammer_play_hit_fx(), action_update_hammer(), action_update_hit_lava(), action_update_jump(), action_update_land(), action_update_parasol(), action_update_peach_land(), action_update_sliding(), action_update_spin(), action_update_spin_jump(), action_update_tornado_jump(), action_update_use_munchlesia(), action_update_use_tweester(), appendGfx_pulse_stone_icon(), ispy_notification_update(), phys_player_land(), player_jump(), and try_player_footstep_sounds().
void sfx_play_sound_at_npc | ( | s32 | soundID, |
s32 | flags, | ||
s32 | npcID ) |
Definition at line 527 of file sfx.c.
Referenced by update_riding_physics().
void sfx_play_sound_at_position | ( | s32 | soundID, |
s32 | flags, | ||
f32 | posX, | ||
f32 | posY, | ||
f32 | posZ ) |
Definition at line 535 of file sfx.c.
void sfx_get_spatialized_sound_params | ( | f32 | x, |
f32 | y, | ||
f32 | z, | ||
s16 * | volume, | ||
s16 * | pan, | ||
s32 | flags ) |
Definition at line 551 of file sfx.c.
Referenced by sfx_play_sound_at_position(), and sfx_update_env_sound_params().
void sfx_compute_spatialized_sound_params_ignore_depth | ( | f32 | x, |
f32 | y, | ||
f32 | z, | ||
s16 * | volume, | ||
s16 * | pan ) |
Definition at line 594 of file sfx.c.
Referenced by sfx_get_spatialized_sound_params().
void sfx_compute_spatialized_sound_params_with_depth | ( | f32 | x, |
f32 | y, | ||
f32 | z, | ||
s16 * | volume, | ||
s16 * | pan ) |
Definition at line 628 of file sfx.c.
Referenced by sfx_get_spatialized_sound_params().
u16 gCurrentDoorSounds |
Definition at line 6 of file sfx.c.
Referenced by sfx_play_sound_with_params(), and sfx_reset_door_sounds().
u16 gCurrentRoomDoorSounds |
Definition at line 7 of file sfx.c.
Referenced by sfx_play_sound_with_params(), and sfx_reset_door_sounds().
s32 LoopingSounds[] |
Definition at line 12 of file sfx.c.
Referenced by sfx_adjust_env_sound_params(), sfx_play_sound_at_position(), sfx_play_sound_with_params(), and sfx_stop_sound().
s32 FireBar0Sounds[] = { SOUND_FIRE_BAR_0_A, SOUND_FIRE_BAR_0_B } |
s32 FireBar1Sounds[] = { SOUND_FIRE_BAR_1_A, SOUND_FIRE_BAR_1_B } |
s32 FireBar2Sounds[] = { SOUND_FIRE_BAR_2_A, SOUND_FIRE_BAR_2_B } |
s32 FireBar3Sounds[] = { SOUND_FIRE_BAR_3_A, SOUND_FIRE_BAR_3_B } |
s32 FireBar4Sounds[] = { SOUND_FIRE_BAR_4_A, SOUND_FIRE_BAR_4_B } |
s32 FireBar5Sounds[] = { SOUND_FIRE_BAR_5_A, SOUND_FIRE_BAR_5_B } |
s32 FireBar6Sounds[] = { SOUND_FIRE_BAR_6_A, SOUND_FIRE_BAR_6_B } |
s32 FireBar7Sounds[] = { SOUND_FIRE_BAR_7_A, SOUND_FIRE_BAR_7_B } |
s32 FireBar8Sounds[] = { SOUND_FIRE_BAR_8_A, SOUND_FIRE_BAR_8_B } |
s32 FireBar9Sounds[] = { SOUND_FIRE_BAR_9_A, SOUND_FIRE_BAR_9_B } |
s32 FireBarDeadSounds[] = { SOUND_FIRE_BAR_DEAD, SOUND_FIRE_BAR_DEAD } |
s32 AlertSounds[] = { SOUND_AI_ALERT_A, SOUND_AI_ALERT_B } |
s32 SnoreInhaleSounds[] = { SOUND_SNORE_INHALE_A, SOUND_SNORE_INHALE_B } |
s32 SnoreExhaleSounds[] = { SOUND_SNORE_EXHALE_A, SOUND_SNORE_EXHALE_B } |
s32 SnapAwakeSounds[] = { SOUND_SNAP_AWAKE_A, SOUND_SNAP_AWAKE_B } |
s32 BooVanishSounds[] = { SOUND_BOO_VANISH_A, SOUND_BOO_VANISH_B } |
s32 BooAppearSounds[] = { SOUND_BOO_APPEAR_A, SOUND_BOO_APPEAR_B } |
s32 WindowOpenSounds[] = { SOUND_WINDOW_OPEN_A, SOUND_WINDOW_OPEN_B } |
s32 WindowCloseSounds[] = { SOUND_WINDOW_CLOSE_A, SOUND_WINDOW_CLOSE_B } |
s32 RavenLeapSounds[] = { SOUND_RAVEN_LEAP_A, SOUND_RAVEN_LEAP_B } |
s32 RavenFallSounds[] = { SOUND_RAVEN_FALL_A, SOUND_RAVEN_FALL_B, SOUND_RAVEN_FALL_C } |
s32 ShootingStarFallSounds[] = { SOUND_SHOOTING_STAR_FALL_A, SOUND_SHOOTING_STAR_FALL_B } |
s32 ShootingStarBounceSounds[] = { SOUND_STAR_BOUNCE_A, SOUND_STAR_BOUNCE_B } |
s32 FuzzyHopSounds[] = { SOUND_FUZZY_HOP_A, SOUND_FUZZY_HOP_B, SOUND_FUZZY_HOP_C } |
s32 BulletBillExplodeSounds[] = { SOUND_BULLET_BILL_EXPLODE_A, SOUND_BULLET_BILL_EXPLODE_B } |
s32 LuigiStepSounds[] = { SOUND_LUIGI_STEP_A, SOUND_LUIGI_STEP_B } |
s32 TrainChugSounds[] = { SOUND_TRAIN_CHUG_A, SOUND_TRAIN_CHUG_B } |
s32 FinaleBridgeCollapseSounds[] = { SOUND_KPA_BRIDGE_COLLAPSE_A, SOUND_KPA_BRIDGE_COLLAPSE_B } |
s32 FinaleExplosionSounds[] = { SOUND_KPA_EXPLOSION_A, SOUND_KPA_EXPLOSION_B } |
s32 CardShuffleSounds[] = { SOUND_SHUFFLE_CARD_A, SOUND_SHUFFLE_CARD_B } |
s32 StarSpiritAppearSounds[] = { SOUND_STAR_SPIRIT_APPEAR_A, SOUND_STAR_SPIRIT_APPEAR_B } |
s32 StarSpiritCastSounds[] = { SOUND_STAR_SPIRIT_CAST_A, SOUND_STAR_SPIRIT_CAST_B } |
s32 UnusedExplodeSounds[] = { SOUND_BULLET_BILL_EXPLODE_A, SOUND_BULLET_BILL_EXPLODE_B } |
s32 ShyGuyStepSounds[] = { SOUND_SHY_GUY_STEP_A, SOUND_SHY_GUY_STEP_B } |
AlternatingSoundSet AlternatingSounds[] |
s32 OpenCloseSounds[][2] |
Definition at line 202 of file sfx.c.
Referenced by sfx_play_sound_with_params().
BSS SoundInstance wEnvSounds[10] |
Definition at line 212 of file sfx.c.
Referenced by sfx_clear_env_sounds(), sfx_clear_sounds(), and sfx_stop_env_sounds().
BSS SoundInstance bEnvSounds[10] |
Definition at line 213 of file sfx.c.
Referenced by sfx_clear_env_sounds(), sfx_clear_sounds(), and sfx_stop_env_sounds().
BSS SoundInstance* gCurrentEnvSounds |
Definition at line 214 of file sfx.c.
Referenced by sfx_clear_env_sounds(), sfx_clear_sounds(), sfx_get_env_sound_instance(), sfx_play_sound_looping(), sfx_register_looping_sound_at_position(), sfx_stop_env_sounds(), and sfx_update_env_sound_params().
BSS s32 SfxReverbMode |
Definition at line 215 of file sfx.c.
Referenced by sfx_get_reverb_mode(), and sfx_set_reverb_mode().