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

Method GetPoints

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

Source from the content-addressed store, hash-verified

736}
737
738void Envelope::GetPoints(double *bufferWhen,
739 double *bufferValue,
740 int bufferLen) const
741{
742 int n = mEnv.size();
743 if (n > bufferLen)
744 n = bufferLen;
745 int i;
746 for (i = 0; i < n; i++) {
747 bufferWhen[i] = mEnv[i].GetT() - mOffset;
748 bufferValue[i] = mEnv[i].GetVal();
749 }
750}
751
752void Envelope::Cap( double sampleDur )
753{

Callers 5

EnvelopeUpdatedMethod · 0.80
EnvLogToLinMethod · 0.80
EnvLinToLogMethod · 0.80
InvertMethod · 0.80
UpdateDrawMethod · 0.80

Calls 3

GetTMethod · 0.80
GetValMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected