2013-05-05 09:21:30 +00:00
|
|
|
void DSP::serialize(serializer& s) {
|
2012-03-23 10:43:39 +00:00
|
|
|
Thread::serialize(s);
|
2010-08-09 13:28:56 +00:00
|
|
|
|
|
|
|
s.array(state.regs, 128);
|
2015-10-10 02:16:12 +00:00
|
|
|
state.echoHistory[0].serialize(s);
|
|
|
|
state.echoHistory[1].serialize(s);
|
|
|
|
s.integer(state.echoHistoryOffset);
|
2010-08-09 13:28:56 +00:00
|
|
|
|
2015-10-10 02:16:12 +00:00
|
|
|
s.integer(state.everyOtherSample);
|
2010-08-09 13:28:56 +00:00
|
|
|
s.integer(state.kon);
|
|
|
|
s.integer(state.noise);
|
|
|
|
s.integer(state.counter);
|
2015-10-10 02:16:12 +00:00
|
|
|
s.integer(state.echoOffset);
|
|
|
|
s.integer(state.echoLength);
|
|
|
|
|
|
|
|
s.integer(state.konBuffer);
|
|
|
|
s.integer(state.endxBuffer);
|
|
|
|
s.integer(state.envxBuffer);
|
|
|
|
s.integer(state.outxBuffer);
|
|
|
|
|
|
|
|
s.integer(state._pmon);
|
|
|
|
s.integer(state._non);
|
|
|
|
s.integer(state._eon);
|
|
|
|
s.integer(state._dir);
|
|
|
|
s.integer(state._koff);
|
|
|
|
|
|
|
|
s.integer(state._brrNextAddress);
|
|
|
|
s.integer(state._adsr0);
|
|
|
|
s.integer(state._brrHeader);
|
|
|
|
s.integer(state._brrByte);
|
|
|
|
s.integer(state._srcn);
|
|
|
|
s.integer(state._esa);
|
|
|
|
s.integer(state._echoDisabled);
|
|
|
|
|
|
|
|
s.integer(state._dirAddress);
|
|
|
|
s.integer(state._pitch);
|
|
|
|
s.integer(state._output);
|
|
|
|
s.integer(state._looped);
|
|
|
|
s.integer(state._echoPointer);
|
|
|
|
|
|
|
|
s.array(state._mainOut, 2);
|
|
|
|
s.array(state._echoOut, 2);
|
|
|
|
s.array(state._echoIn, 2);
|
|
|
|
|
|
|
|
for(auto n : range(8)) {
|
2010-08-09 13:28:56 +00:00
|
|
|
voice[n].buffer.serialize(s);
|
2015-10-10 02:16:12 +00:00
|
|
|
s.integer(voice[n].bufferOffset);
|
|
|
|
s.integer(voice[n].gaussianOffset);
|
|
|
|
s.integer(voice[n].brrAddress);
|
|
|
|
s.integer(voice[n].brrOffset);
|
2010-08-09 13:28:56 +00:00
|
|
|
s.integer(voice[n].vbit);
|
|
|
|
s.integer(voice[n].vidx);
|
2015-10-10 02:16:12 +00:00
|
|
|
s.integer(voice[n].konDelay);
|
|
|
|
s.integer(voice[n].envelopeMode);
|
|
|
|
s.integer(voice[n].envelope);
|
|
|
|
s.integer(voice[n].hiddenEnvelope);
|
|
|
|
s.integer(voice[n]._envxOut);
|
2010-08-09 13:28:56 +00:00
|
|
|
}
|
|
|
|
}
|