src/sound.c file

Enums

enum MusicPlayerE { MUSIC_PLAYER_00, MUSIC_PLAYER_PLY_VO, MUSIC_PLAYER_02, MUSIC_PLAYER_03, MUSIC_PLAYER_04, MUSIC_PLAYER_05, MUSIC_PLAYER_06, MUSIC_PLAYER_07, MUSIC_PLAYER_08, MUSIC_PLAYER_09, MUSIC_PLAYER_0A, MUSIC_PLAYER_0B, MUSIC_PLAYER_0C, MUSIC_PLAYER_0D, MUSIC_PLAYER_0E, MUSIC_PLAYER_0F, MUSIC_PLAYER_10, MUSIC_PLAYER_11, MUSIC_PLAYER_12, MUSIC_PLAYER_13, MUSIC_PLAYER_14, MUSIC_PLAYER_15, MUSIC_PLAYER_16, MUSIC_PLAYER_17, MUSIC_PLAYER_18, MUSIC_PLAYER_19, MUSIC_PLAYER_1A, MUSIC_PLAYER_1B, MUSIC_PLAYER_1C, MUSIC_PLAYER_1D, MUSIC_PLAYER_1E, MUSIC_PLAYER_BGM }

Functions

static auto fade(s32 target, s32 current) -> s32
static void doPlaySound(u32 sound)
static void PlayFadeIn(u32 sound)
static void PlayFadeOut(u32 sound)
static void InitVolume(void)
void InitSound(void)
void InitSoundPlayingInfo(void)
void SetMasterVolume(u32 volume)
void SetBgmVolume(u32 volume)
void SetSfxVolume(u32 volume)
void SoundReq(u32 sound)
void AudioMain(void)

Variables

const SongHeader sfxNone
const SongHeader bgmCastleTournament
const SongHeader bgmVaatiMotif
const SongHeader bgmTitleScreen
const SongHeader bgmCastleMotif
const SongHeader bgmElementGet
const SongHeader bgmFairyFountain
const SongHeader bgmFileSelect
const SongHeader bgmIntroCutscene
const SongHeader bgmCredits
const SongHeader bgmGameover
const SongHeader bgmSavingZelda
const SongHeader bgmLttpTitle
const SongHeader bgmVaatiTheme
const SongHeader bgmEzloTheme
const SongHeader bgmStory
const SongHeader bgmFestivalApproach
const SongHeader bgmBeatVaati
const SongHeader bgmUnused
const SongHeader bgmBeanstalk
const SongHeader bgmHouse
const SongHeader bgmCuccoMinigame
const SongHeader bgmSyrupTheme
const SongHeader bgmDungeon
const SongHeader bgmElementTheme
const SongHeader bgmHyruleField
const SongHeader bgmHyruleCastle
const SongHeader bgmHyruleCastleNointro
const SongHeader bgmMinishVillage
const SongHeader bgmMinishWoods
const SongHeader bgmCrenelStorm
const SongHeader bgmCastorWilds
const SongHeader bgmHyruleTown
const SongHeader bgmRoyalValley
const SongHeader bgmCloudTops
const SongHeader bgmDarkHyruleCastle
const SongHeader bgmSecretCastleEntrance
const SongHeader bgmDeepwoodShrine
const SongHeader bgmCaveOfFlames
const SongHeader bgmFortressOfWinds
const SongHeader bgmTempleOfDroplets
const SongHeader bgmPalaceOfWinds
const SongHeader bgmEzloStory
const SongHeader bgmRoyalCrypt
const SongHeader bgmElementalSanctuary
const SongHeader bgmFightTheme
const SongHeader bgmBossTheme
const SongHeader bgmVaatiReborn
const SongHeader bgmVaatiTransfigured
const SongHeader bgmCastleCollapse
const SongHeader bgmVaatiWrath
const SongHeader bgmFightTheme2
const SongHeader bgmDiggingCave
const SongHeader bgmSwiftbladeDojo
const SongHeader bgmMinishCap
const SongHeader bgmMtCrenel
const SongHeader bgmPicoriFestival
const SongHeader bgmLostWoods
const SongHeader bgmFairyFountain2
const SongHeader bgmWindRuins
const SongHeader bgmLearnScroll
const SongHeader bgmEzloGet
const SongHeader sfxBeep
const SongHeader sfxTextboxOpen
const SongHeader sfxTextboxClose
const SongHeader sfxTextboxNext
const SongHeader sfxTextboxSwap
const SongHeader sfxTextboxChoice
const SongHeader sfxTextboxSelect
const SongHeader sfx6B
const SongHeader sfxMenuCancel
const SongHeader sfxMenuError
const SongHeader sfxRupeeBounce
const SongHeader sfxRupeeGet
const SongHeader sfxHeartBounce
const SongHeader sfxHeartGet
const SongHeader sfxSecret
const SongHeader sfxSecretBig
const SongHeader sfxMetalClink
const SongHeader sfxPlyVo1
const SongHeader sfxPlyVo2
const SongHeader sfxPlyVo3
const SongHeader sfxPlyVo4
const SongHeader sfxPlyVo5
const SongHeader sfxPlyVo6
const SongHeader sfxPlyVo7
const SongHeader sfxPlyJump
const SongHeader sfxPlyLand
const SongHeader sfx7E
const SongHeader sfxPlyLift
const SongHeader sfx80
const SongHeader sfx81
const SongHeader sfx82
const SongHeader sfxWaterWalk
const SongHeader sfxWaterSplash
const SongHeader sfxFallHole
const SongHeader sfx86
const SongHeader sfxPlyDie
const SongHeader sfx88
const SongHeader sfxBarrelRelease
const SongHeader sfxBarrelEnter
const SongHeader sfxBarrelRoll
const SongHeader sfxBarrelRollStop
const SongHeader sfxVoEzlo1
const SongHeader sfxVoEzlo2
const SongHeader sfxVoEzlo3
const SongHeader sfxVoEzlo4
const SongHeader sfxVoEzlo5
const SongHeader sfxVoEzlo6
const SongHeader sfxVoEzlo7
const SongHeader sfxVoZelda1
const SongHeader sfxVoZelda2
const SongHeader sfxVoZelda3
const SongHeader sfxVoZelda4
const SongHeader sfxVoZelda5
const SongHeader sfxVoZelda6
const SongHeader sfxVoZelda7
const SongHeader sfx9B
const SongHeader sfx9C
const SongHeader sfx9D
const SongHeader sfx9E
const SongHeader sfx9F
const SongHeader sfxA0
const SongHeader sfxVoTingle1
const SongHeader sfxVoTingle2
const SongHeader sfxVoKing1
const SongHeader sfxVoKing2
const SongHeader sfxVoKing3
const SongHeader sfxVoKing4
const SongHeader sfxVoKing5
const SongHeader sfxA8
const SongHeader sfxA9
const SongHeader sfxAA
const SongHeader sfxSpiritsRelease
const SongHeader sfxAC
const SongHeader sfxVoBeedle
const SongHeader sfxAE
const SongHeader sfxAF
const SongHeader sfxB0
const SongHeader sfxMinish1
const SongHeader sfxMinish2
const SongHeader sfxMinish3
const SongHeader sfxMinish4
const SongHeader sfxB5
const SongHeader sfxB6
const SongHeader sfxB7
const SongHeader sfxB8
const SongHeader sfxB9
const SongHeader sfxBA
const SongHeader sfxBB
const SongHeader sfxBC
const SongHeader sfxBD
const SongHeader sfxBE
const SongHeader sfxBF
const SongHeader sfxC0
const SongHeader sfxC1
const SongHeader sfxC2
const SongHeader sfxC3
const SongHeader sfxC4
const SongHeader sfxC5
const SongHeader sfxC6
const SongHeader sfxC7
const SongHeader sfxC8
const SongHeader sfxC9
const SongHeader sfxCA
const SongHeader sfxCB
const SongHeader sfxRemSleep
const SongHeader sfxTaskComplete
const SongHeader sfxKeyAppear
const SongHeader sfxCF
const SongHeader sfxD0
const SongHeader sfxVoDog
const SongHeader sfxVoCat
const SongHeader sfxVoEpona
const SongHeader sfxVoCow
const SongHeader sfxVoCuccoCall
const SongHeader sfxVoCheep
const SongHeader sfxItemSwordCharge
const SongHeader sfxItemSwordChargeFinish
const SongHeader sfxD9
const SongHeader sfxDA
const SongHeader sfxVoSturgeon
const SongHeader sfxHammer1
const SongHeader sfxHammer2
const SongHeader sfxHammer3
const SongHeader sfxHammer4
const SongHeader sfxHammer5
const SongHeader sfxHammer6
const SongHeader sfxCuccoMinigameBell
const SongHeader sfxE3
const SongHeader sfxE4
const SongHeader sfxButtonDepress
const SongHeader sfxThudHeavy
const SongHeader sfxWind1
const SongHeader sfxWind2
const SongHeader sfxWind3
const SongHeader sfxEA
const SongHeader sfxEB
const SongHeader sfxEC
const SongHeader sfxED
const SongHeader sfxEE
const SongHeader sfxEF
const SongHeader sfxF0
const SongHeader sfxF1
const SongHeader sfxF2
const SongHeader sfxF3
const SongHeader sfxSummon
const SongHeader sfxF5
const SongHeader sfxEvaporate
const SongHeader sfxApparate
const SongHeader sfxF8
const SongHeader sfxTeleporter
const SongHeader sfxFA
const SongHeader sfxFB
const SongHeader sfxFC
const SongHeader sfxItemBombExplode
const SongHeader sfxHit
const SongHeader sfxFF
const SongHeader sfx100
const SongHeader sfx101
const SongHeader sfx102
const SongHeader sfx103
const SongHeader sfx104
const SongHeader sfx105
const SongHeader sfx106
const SongHeader sfx107
const SongHeader sfx108
const SongHeader sfx109
const SongHeader sfx10A
const SongHeader sfx10B
const SongHeader sfxButtonPress
const SongHeader sfx10D
const SongHeader sfx10E
const SongHeader sfx10F
const SongHeader sfx110
const SongHeader sfx111
const SongHeader sfx112
const SongHeader sfx113
const SongHeader sfx114
const SongHeader sfx115
const SongHeader sfx116
const SongHeader sfx117
const SongHeader sfxItemShieldBounce
const SongHeader sfxItemGlovesKnockback
const SongHeader sfxEmArmosOn
const SongHeader sfxChestOpen
const SongHeader sfx11C
const SongHeader sfx11D
const SongHeader sfxEmMoblinSpear
const SongHeader sfxLowHealth
const SongHeader sfxChargingUp
const SongHeader sfxStairs
const SongHeader sfx122
const SongHeader sfx123
const SongHeader sfx124
const SongHeader sfx125
const SongHeader sfx126
const SongHeader sfxBossHit
const SongHeader sfxBossDie
const SongHeader sfxBossExplode
const SongHeader sfx12A
const SongHeader sfx12B
const SongHeader sfx12C
const SongHeader sfx12D
const SongHeader sfx12E
const SongHeader sfx12F
const SongHeader sfx130
const SongHeader sfx131
const SongHeader sfx132
const SongHeader sfx133
const SongHeader sfx134
const SongHeader sfx135
const SongHeader sfx136
const SongHeader sfx137
const SongHeader sfx138
const SongHeader sfx139
const SongHeader sfx13A
const SongHeader sfx13B
const SongHeader sfx13C
const SongHeader sfxItemLanternOn
const SongHeader sfxItemLanternOff
const SongHeader sfxItemSwordBeam
const SongHeader sfx140
const SongHeader sfxHeartContainerSpawn
const SongHeader sfxSparkles
const SongHeader sfx143
const SongHeader sfx144
const SongHeader sfx145
const SongHeader sfx146
const SongHeader sfx147
const SongHeader sfx148
const SongHeader sfx149
const SongHeader sfx14A
const SongHeader sfx14B
const SongHeader sfx14C
const SongHeader sfx14D
const SongHeader sfx14E
const SongHeader sfx14F
const SongHeader sfx150
const SongHeader sfx151
const SongHeader sfxNearPortal
const SongHeader sfx153
const SongHeader sfx154
const SongHeader sfx155
const SongHeader sfx156
const SongHeader sfx157
const SongHeader sfx158
const SongHeader sfx159
const SongHeader sfx15A
const SongHeader sfx15B
const SongHeader sfx15C
const SongHeader sfx15D
const SongHeader sfx15E
const SongHeader sfx15F
const SongHeader sfx160
const SongHeader sfx161
const SongHeader sfx162
const SongHeader sfxToggleDiving
const SongHeader sfx164
const SongHeader sfx165
const SongHeader sfx166
const SongHeader sfx167
const SongHeader sfx168
const SongHeader sfx169
const SongHeader sfx16A
const SongHeader sfxPressurePlate
const SongHeader sfx16C
const SongHeader sfx16D
const SongHeader sfx16E
const SongHeader sfxPlyShrinking
const SongHeader sfxPlyGrow
const SongHeader sfx171
const SongHeader sfx172
const SongHeader sfxEzloUi
const SongHeader sfx174
const SongHeader sfx175
const SongHeader sfx176
const SongHeader sfx177
const SongHeader sfx178
const SongHeader sfx179
const SongHeader sfx17A
const SongHeader sfxLavaTitleStep
const SongHeader sfxLavaTitleWobble
const SongHeader sfxLavaTitleSink
const SongHeader sfxLavaTitleFlip
const SongHeader sfxLavaTitleLand
const SongHeader sfx180
const SongHeader sfx181
const SongHeader sfx182
const SongHeader sfx183
const SongHeader sfx184
const SongHeader sfx185
const SongHeader sfx186
const SongHeader sfxStairsAscend
const SongHeader sfxStairsDescend
const SongHeader sfx189
const SongHeader sfx18A
const SongHeader sfx18B
const SongHeader sfx18C
const SongHeader sfx18D
const SongHeader sfx18E
const SongHeader sfx18F
const SongHeader sfx190
const SongHeader sfx191
const SongHeader sfx192
const SongHeader sfx193
const SongHeader sfx194
const SongHeader sfx195
const SongHeader sfx196
const SongHeader sfx197
const SongHeader sfx198
const SongHeader sfx199
const SongHeader sfx19A
const SongHeader sfx19B
const SongHeader sfx19C
const SongHeader sfx19D
const SongHeader sfx19E
const SongHeader sfx19F
const SongHeader sfx1A0
const SongHeader sfx1A1
const SongHeader sfx1A2
const SongHeader sfx1A3
const SongHeader sfx1A4
const SongHeader sfx1A5
const SongHeader sfx1A6
const SongHeader sfx1A7
const SongHeader sfx1A8
const SongHeader sfx1A9
const SongHeader sfx1AA
const SongHeader sfx1AB
const SongHeader sfx1AC
const SongHeader sfx1AD
const SongHeader sfx1AE
const SongHeader sfx1AF
const SongHeader sfx1B0
const SongHeader sfxIceBlockSlide
const SongHeader sfxIceBlockStop
const SongHeader sfxIceBlockMelt
const SongHeader sfx1B4
const SongHeader sfx1B5
const SongHeader sfx1B6
const SongHeader sfxVoGoron1
const SongHeader sfxVoGoron2
const SongHeader sfxVoGoron3
const SongHeader sfxVoGoron4
const SongHeader sfxEmDekuscrubHit
const SongHeader sfx1BC
const SongHeader sfx1BD
const SongHeader sfx1BE
const SongHeader sfx1BF
const SongHeader sfx1C0
const SongHeader sfx1C1
const SongHeader sfx1C2
const SongHeader sfx1C3
const SongHeader sfx1C4
const SongHeader sfx1C5
const SongHeader sfx1C6
const SongHeader sfx1C7
const SongHeader sfx1C8
const SongHeader sfx1C9
const SongHeader sfx1CA
const SongHeader sfx1CB
const SongHeader sfx1CC
const SongHeader sfxElementPlace
const SongHeader sfxElementFloat
const SongHeader sfxElementCharge
const SongHeader sfx1D0
const SongHeader sfxElementInfuse
const SongHeader sfx1D2
const SongHeader sfx1D3
const SongHeader sfx1D4
const SongHeader sfx1D5
const SongHeader sfxVoCucco1
const SongHeader sfxVoCucco2
const SongHeader sfxVoCucco3
const SongHeader sfxVoCucco4
const SongHeader sfxVoCucco5
const SongHeader sfx1DB
const SongHeader sfx1DC
const SongHeader sfx1DD
const SongHeader sfx1DE
const SongHeader sfx1DF
const SongHeader sfx1E0
const SongHeader sfx1E1
const SongHeader sfx1E2
const SongHeader sfx1E3
const SongHeader sfx1E4
const SongHeader sfx1E5
const SongHeader sfx1E6
const SongHeader sfx1E7
const SongHeader sfx1E8
const SongHeader sfx1E9
const SongHeader sfx1EA
const SongHeader sfx1EB
const SongHeader sfx1EC
const SongHeader sfx1ED
const SongHeader sfx1EE
const SongHeader sfx1EF
const SongHeader sfx1F0
const SongHeader sfx1F1
const SongHeader sfx1F2
const SongHeader sfx1F3
const SongHeader sfx1F4
const SongHeader sfx1F5
const SongHeader sfx1F6
const SongHeader sfx1F7
const SongHeader sfx1F8
const SongHeader sfx1F9
const SongHeader sfx1FA
const SongHeader sfx1FB
const SongHeader sfx1FC
const SongHeader sfx1FD
const SongHeader sfx1FE
const SongHeader sfx1FF
const SongHeader sfx200
const SongHeader sfx201
const SongHeader sfx202
const SongHeader sfx203
const SongHeader sfx204
const SongHeader sfx205
const SongHeader sfx206
const SongHeader sfx207
const SongHeader sfx208
const SongHeader sfx209
const SongHeader sfx20A
const SongHeader sfx20B
const SongHeader sfx20C
const SongHeader sfx20D
const SongHeader sfx20E
const SongHeader sfx20F
const SongHeader sfx210
const SongHeader sfx211
const SongHeader sfx212
const SongHeader sfx213
const SongHeader sfx214
const SongHeader sfx215
const SongHeader sfx216
const SongHeader sfx217
const SongHeader sfx218
const SongHeader sfx219
const SongHeader sfx21A
const SongHeader sfx21B
const SongHeader sfx21C
const SongHeader sfx21D
const SongHeader sfx21E
const SongHeader sfx21F
const SongHeader sfx220
const SongHeader sfx221
MusicPlayerTrack gMPlayTracks
MusicPlayerInfo gMPlayInfos
u8 gMPlayMemAccArea
MusicPlayerInfo gMPlayInfos2
const MusicPlayer gMusicPlayers
const Song gSongTable

Defines

#define IS_BGM(song)
#define IS_SFX(song)