MCPcopy Create free account
hub / github.com/audacity/audacity / Reassign

Method Reassign

libraries/lib-mixer/Envelope.cpp:700–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698}
699
700int Envelope::Reassign(double when, double value)
701{
702 when -= mOffset;
703
704 int len = mEnv.size();
705 if (len == 0)
706 return -1;
707
708 int i = 0;
709 while (i < len && when > mEnv[i].GetT())
710 i++;
711
712 if (i >= len || when < mEnv[i].GetT())
713 return -1;
714
715 mEnv[i].SetVal(this, value);
716
717 ++mVersion;
718
719 return 0;
720}
721
722
723size_t Envelope::GetNumberOfPoints() const

Callers 4

EnvLogToLinMethod · 0.80
EnvLinToLogMethod · 0.80
GraphicEQMethod · 0.80
InvertMethod · 0.80

Calls 3

GetTMethod · 0.80
SetValMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected