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

Function adlib_reset_channels

src/Engine/Adlib/adlplayer.cpp:357–365  ·  view source on GitHub ↗

resets (clears) adlib channels

Source from the content-addressed store, hash-verified

355
356// resets (clears) adlib channels
357void adlib_reset_channels()
358{
359 clear_channels();
360 for (int i=0; i<12; ++i)
361 {
362 adlib_reg(0xB0+i, 0);
363 adlib_set_amplitude(i, 0);
364 }
365}
366
367// returns note frequency with pitch wheel value applied
368int get_pitched_freq_instr(int note, int instrument)

Callers 3

func_muteFunction · 0.85
func_load_music_stateFunction · 0.85
func_setup_musicFunction · 0.85

Calls 3

clear_channelsFunction · 0.85
adlib_regFunction · 0.85
adlib_set_amplitudeFunction · 0.85

Tested by

no test coverage detected