MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / D3MusicDoFrame

Function D3MusicDoFrame

Descent3/d3music.cpp:123–139  ·  view source on GitHub ↗

execute music sequencer.

Source from the content-addressed store, hash-verified

121
122// execute music sequencer.
123void D3MusicDoFrame(tMusicSeqInfo *music_info) {
124 // update music ai with new music info
125 if (!Music_on)
126 return;
127
128 D3MusicAI(music_info);
129
130 // handle current events.
131 D3MusicSongSelector();
132
133 // run frame.
134 Music_seq.Frame(music_info->frametime);
135
136 // end
137 music_info->cur_loop_name = Music_seq.GetCurrentLoopName(&music_info->cur_loop_count);
138 music_info->cur_song = MusicAI.cur_song;
139}
140
141// toggle music system.
142void D3MusicToggle() {

Callers 5

GameProcessMusicFunction · 0.85
TelComHandleAllEventsFunction · 0.85
DoUIFrameFunction · 0.85
DoUIFrameWithoutInputFunction · 0.85
Credits_DisplayFunction · 0.85

Calls 4

D3MusicAIFunction · 0.85
D3MusicSongSelectorFunction · 0.85
GetCurrentLoopNameMethod · 0.80
FrameMethod · 0.45

Tested by

no test coverage detected