wavelength 1.0.0
Loading...
Searching...
No Matches
transitionmusic.h File Reference

Go to the source code of this file.

Functions

void LoadSharedMusic ()
 Build the tracks shared by every menu song from the music_shared_midi_file entry of the metagame configuration.
void UnloadSharedMusic ()
 Release the shared tracks and the lag ramp.
void FadeInSharedMusic ()
 Fade each shared track in from the start of its loop over 1440 ticks, and move the lag of the sound output to 100 milliseconds.
void FadeOutSharedMusic ()
 Fade each shared track out over 1440 ticks, and move the lag of the sound output back to the lag_ms entry of the synth section.
bool IsSharedMusicFading ()
 Report whether a shared track still plays, as one does until its fade out has ended.

Function Documentation

◆ LoadSharedMusic()

void LoadSharedMusic ( )

Build the tracks shared by every menu song from the music_shared_midi_file entry of the metagame configuration.

The routines of the shared music have no receiver and act on the file-level tracks and lag ramp of their unit. No class provides them. Each track of the file whose name is TRANSITION 1, TRANSITION 3, or TRANSITION 4 becomes a MixTrack. The names are inferred.

Ghidra address:
NTSC-U/C: 0x00197068
Ghidra address:
PAL: 0x0019e588

◆ UnloadSharedMusic()

void UnloadSharedMusic ( )

Release the shared tracks and the lag ramp.

Ghidra address:
NTSC-U/C: 0x00197118
Ghidra address:
PAL: 0x0019e638

◆ FadeInSharedMusic()

void FadeInSharedMusic ( )

Fade each shared track in from the start of its loop over 1440 ticks, and move the lag of the sound output to 100 milliseconds.

Ghidra address:
NTSC-U/C: 0x001971f0
Ghidra address:
PAL: 0x0019e710

◆ FadeOutSharedMusic()

void FadeOutSharedMusic ( )

Fade each shared track out over 1440 ticks, and move the lag of the sound output back to the lag_ms entry of the synth section.

Ghidra address:
NTSC-U/C: 0x001972c8
Ghidra address:
PAL: 0x0019e7e8

◆ IsSharedMusicFading()

bool IsSharedMusicFading ( )

Report whether a shared track still plays, as one does until its fade out has ended.

Returns
Whether a shared track plays.
Ghidra address:
NTSC-U/C: 0x001973c8
Ghidra address:
PAL: 0x0019e8e8