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

Function D3MusicSetRegion

Descent3/d3music.cpp:407–417  ·  view source on GitHub ↗

set music region

Source from the content-addressed store, hash-verified

405
406// set music region
407void D3MusicSetRegion(int16_t region, bool immediate) {
408 if (Music_seq.GetCurrentRegion() != region) {
409 MusicAI.immediate_switch = immediate;
410 MusicAI.pending_region = region;
411 //@@ if (MusicAI.immediate_switch) {
412 //@@ // at next frame, start again!
413 //@@ Music_seq.Pause();
414 //@@ MusicAI.restart_sequencer = true;
415 //@@ }
416 }
417}
418
419// retreives current region
420int16_t D3MusicGetRegion() { return Music_seq.GetPlayingRegion(); }

Callers 6

ProcessTestKeysFunction · 0.85
msafe_CallFunctionFunction · 0.85
LoadGameStateFunction · 0.85
Credits_DisplayFunction · 0.85
D3MusicStartFunction · 0.85
SetMusicRegionMethod · 0.85

Calls 1

GetCurrentRegionMethod · 0.80

Tested by

no test coverage detected