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

Method startSong

Source/Amiga/rjp1.cpp:124–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void Rjp1::startSong(int song) {
125 if (song == 0 || song >= _vars.subsongsCount) {
126 //warning("Invalid subsong number %d, defaulting to 1", song);
127 //song = 1;
128 }
129 const uint8 *p = _vars.songData[2] + (song & 0x3F) * 4;
130 for (int i = 0; i < 4; ++i) {
131 uint8 seq = *p++;
132 if (seq) {
133 startSequence(i, seq);
134 }
135 }
136 // "start" Paula audiostream
137 startPaula();
138}
139
140void Rjp1::startSequence(uint8 channelNum, uint8 seqNum) {
141 Rjp1Channel *channel = &_channelsTable[channelNum];

Callers 1

makeRjp1StreamFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected