! @excsafety{No-fail} */
| 805 | |
| 806 | /*! @excsafety{No-fail} */ |
| 807 | void WaveClip::UpdateEnvelopeTrackLen() |
| 808 | { |
| 809 | // The envelope time points account for stretching. |
| 810 | const auto len = GetNumSamples().as_double() * GetStretchRatio() / mRate; |
| 811 | if (len != mEnvelope->GetTrackLen()) |
| 812 | mEnvelope->SetTrackLen(len, 1.0 / GetRate()); |
| 813 | } |
| 814 | |
| 815 | /*! @excsafety{Strong} */ |
| 816 | std::shared_ptr<SampleBlock> |
no test coverage detected