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

Function adlib_init

src/Engine/Adlib/adlplayer.cpp:328–337  ·  view source on GitHub ↗

initialises adlib parameters

Source from the content-addressed store, hash-verified

326
327// initialises adlib parameters
328void adlib_init()
329{
330 for (int i=1; i<0xf5; ++i) adlib_reg(i,0);
331 adlib_reg(0x04, 0x60); //set both timers
332 adlib_reg(0x04, 0x80); //reset timers
333 adlib_reg(0x01, 0x20); //bit5 defines any wave form
334 adlib_reg(0xa8, 0x01); //last channel freq -??
335 adlib_reg(0x08, 0x40); //note mode
336 adlib_reg(0xbd, 0xC0); // vibrato/AM depth
337}
338
339
340// sets voice amplitude for particular adlib channel

Callers 1

func_setup_musicFunction · 0.85

Calls 1

adlib_regFunction · 0.85

Tested by

no test coverage detected