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

Method SaveState

Source/Sample.cpp:322–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void Sample::SaveState(FileStreamOut& out)
323{
324 out << kSaveStateRev;
325
326 out << mNumSamples;
327 if (mNumSamples > 0)
328 mData.Save(out, mNumSamples);
329 out << mNumBars;
330 out << mLooping;
331 out << mRate;
332 out << mOriginalSampleRate;
333 out << mStopPoint;
334 out << mName;
335 out << mReadPath;
336}
337
338void Sample::LoadState(FileStreamIn& in)
339{

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.45

Tested by

no test coverage detected