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

Method LoadState

Source/OscController.cpp:405–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void OscController::LoadState(FileStreamIn& in)
406{
407 int rev;
408 in >> rev;
409 LoadStateValidate(rev <= kSaveStateRev);
410
411 int mapSize;
412 in >> mapSize;
413 mOscMap.resize(mapSize);
414 for (size_t i = 0; i < mOscMap.size(); ++i)
415 {
416 in >> mOscMap[i].mControl;
417 in >> mOscMap[i].mAddress;
418 in >> mOscMap[i].mIsFloat;
419 in >> mOscMap[i].mFloatValue;
420 in >> mOscMap[i].mIntValue;
421 in >> mOscMap[i].mLastChangedTime;
422 }
423}

Callers

nothing calls this directly

Calls 3

LoadStateValidateFunction · 0.85
resizeMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected