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

Method LoadState

Source/FloatSliderLFOControl.cpp:561–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void LFOSettings::LoadState(FileStreamIn& in)
562{
563 int rev = 0;
564 int temp;
565 in >> temp;
566 if (temp == kFixNonRevvedData) //hack to fix data that I didn't revision
567 {
568 in >> rev;
569 LoadStateValidate(rev <= kSaveStateRev);
570 in >> temp;
571 }
572 mInterval = (NoteInterval)temp;
573 in >> temp;
574 mOscType = (OscillatorType)temp;
575 in >> mLFOOffset;
576 in >> mBias;
577 if (rev >= 1)
578 in >> mSpread;
579 if (rev >= 2)
580 {
581 in >> mSoften;
582 in >> mShuffle;
583 }
584 if (rev >= 3)
585 in >> mFreeRate;
586 if (rev >= 4)
587 in >> mLength;
588 if (rev >= 5)
589 in >> mLowResMode;
590 if (rev >= 6)
591 {
592 in >> mMinValue;
593 in >> mMaxValue;
594 }
595}

Callers

nothing calls this directly

Calls 1

LoadStateValidateFunction · 0.85

Tested by

no test coverage detected