MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / startPattern

Method startPattern

Source/Amiga/rjp1.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void Rjp1::startPattern(int ch, int pat) {
113 Rjp1Channel *channel = &_channelsTable[ch];
114 _vars.activeChannelsMask |= 1 << ch;
115 channel->sequenceData = readBEDWord(_vars.songData[4] + pat * 4) + _vars.songData[6];
116 channel->loopSeqCount = 6;
117 channel->loopSeqCur = channel->loopSeq2Cur = 1;
118 channel->active = true;
119 channel->isSfx = true;
120 // "start" Paula audiostream
121 startPaula();
122}
123
124void Rjp1::startSong(int song) {
125 if (song == 0 || song >= _vars.subsongsCount) {

Callers 1

makeRjp1StreamFunction · 0.80

Calls 1

readBEDWordFunction · 0.85

Tested by

no test coverage detected