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

Function clear_channels

src/Engine/Adlib/adlplayer.cpp:347–354  ·  view source on GitHub ↗

clear channel notes and samples

Source from the content-addressed store, hash-verified

345
346// clear channel notes and samples
347void clear_channels()
348{
349 for (int i=0; i<12; ++i)
350 {
351 adlib_channels[i].cur_sample = 0xff;
352 adlib_channels[i].cur_note = 0;
353 }
354}
355
356// resets (clears) adlib channels
357void adlib_reset_channels()

Callers 2

adlib_reset_channelsFunction · 0.85
func_play_tickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected