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

Function func_set_music_volume

src/Engine/Adlib/adlplayer.cpp:856–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854}
855
856void func_set_music_volume(int value)
857{
858 adl_gv_master_music_volume = value;
859 adl_gv_tmp_music_volume = adl_gv_master_music_volume;
860
861 for (int i=0; i<12; ++i)
862 {
863 adlib_set_amplitude(i, (adlib_channels[i].cur_volume*adl_gv_tmp_music_volume)>>7);
864 }
865}
866
867int func_get_polyphony()
868{

Callers 1

playMethod · 0.85

Calls 1

adlib_set_amplitudeFunction · 0.85

Tested by

no test coverage detected