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

Method SetUpFromSaveData

Source/OutputChannel.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void OutputChannel::SetUpFromSaveData()
155{
156 if (mModuleSaveData.HasProperty("channel")) //old version
157 mChannelSelectionIndex = mModuleSaveData.GetInt("channel") - 1;
158 else
159 mChannelSelectionIndex = mModuleSaveData.GetEnum<int>("channels");
160 mLimit = mModuleSaveData.GetFloat("limit");
161
162 mLevelMeterDisplay.SetLimit(mLimit);
163}

Callers

nothing calls this directly

Calls 4

HasPropertyMethod · 0.80
GetIntMethod · 0.80
GetFloatMethod · 0.80
SetLimitMethod · 0.45

Tested by

no test coverage detected