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

Method LoadState

Source/SampleCapturer.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void SampleCapturer::LoadState(FileStreamIn& in, int rev)
302{
303 IDrawableModule::LoadState(in, rev);
304
305 if (ModularSynth::sLoadingFileSaveStateRev < 423)
306 in >> rev;
307 LoadStateValidate(rev <= GetModuleSaveStateRev());
308
309 int readLength;
310 for (int i = 0; i < mSamples.size(); ++i)
311 mSamples[i].mBuffer.Load(in, readLength, ChannelBuffer::LoadMode::kSetBufferSize);
312}

Callers

nothing calls this directly

Calls 3

LoadStateValidateFunction · 0.85
sizeMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected