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

Method process

Descent3/config.cpp:928–939  ·  view source on GitHub ↗

process output and do stuff accordintly

Source from the content-addressed store, hash-verified

926
927 // process output and do stuff accordintly
928 void process(int res) {
929 if (sheet->HasChanged(fxvolume)) {
930 Sound_system.SetMasterVolume((*fxvolume) / 10.0f);
931 Sound_system.BeginSoundFrame(false);
932 Sound_system.StopSoundImmediate(ls_sound_id);
933 ls_sound_id = Sound_system.Play2dSound(sound_id);
934 Sound_system.EndSoundFrame();
935 }
936 if (sheet->HasChanged(musicvolume)) {
937 D3MusicSetVolume((*musicvolume) / 10.0f);
938 }
939 };
940};
941
942

Callers

nothing calls this directly

Calls 7

D3MusicSetVolumeFunction · 0.85
HasChangedMethod · 0.80
SetMasterVolumeMethod · 0.80
BeginSoundFrameMethod · 0.80
StopSoundImmediateMethod · 0.80
Play2dSoundMethod · 0.80
EndSoundFrameMethod · 0.80

Tested by

no test coverage detected