MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / LoadState

Method LoadState

Source/Looper.cpp:1295–1309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1293}
1294
1295void Looper::LoadState(FileStreamIn& in, int rev)
1296{
1297 IDrawableModule::LoadState(in, rev);
1298
1299 if (ModularSynth::sLoadingFileSaveStateRev < 423)
1300 in >> rev;
1301 LoadStateValidate(rev <= GetModuleSaveStateRev());
1302
1303 in >> mLoopLength;
1304 if (rev >= 1)
1305 in >> mBufferTempo;
1306 int readLength;
1307 mBuffer->Load(in, readLength, ChannelBuffer::LoadMode::kAnyBufferSize);
1308 assert(mLoopLength == readLength);
1309}

Callers

nothing calls this directly

Calls 2

LoadStateValidateFunction · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected