MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / func_mute

Function func_mute

src/Engine/Adlib/adlplayer.cpp:519–524  ·  view source on GitHub ↗

MAIN FUNCTION - instantly stops music

Source from the content-addressed store, hash-verified

517
518//MAIN FUNCTION - instantly stops music
519void func_mute()
520{
521 adl_gv_polyphony_level = 0;
522 adl_gv_music_playing = false;
523 adlib_reset_channels();
524}
525
526//decrease volume until 0 with each call, and then stops music
527void fade_volume_if_need()

Callers 4

stopMethod · 0.85
fade_volume_if_needFunction · 0.85
func_setup_musicFunction · 0.85
func_fadeFunction · 0.85

Calls 1

adlib_reset_channelsFunction · 0.85

Tested by

no test coverage detected