mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 09:01:12 +01:00
Bug2598: Envelope edit not dependend on visibility of channels...
... And other rewrites. Don't use a cache of wave clip X coordinates computed during drawing.
This commit is contained in:
@@ -1187,22 +1187,6 @@ void WaveClip::TimeToSamplesClip(double t0, sampleCount *s0) const
|
||||
*s0 = sampleCount( floor(((t0 - mOffset) * mRate) + 0.5) );
|
||||
}
|
||||
|
||||
void WaveClip::ClearDisplayRect() const
|
||||
{
|
||||
mDisplayRect.x = mDisplayRect.y = -1;
|
||||
mDisplayRect.width = mDisplayRect.height = -1;
|
||||
}
|
||||
|
||||
void WaveClip::SetDisplayRect(const wxRect& r) const
|
||||
{
|
||||
mDisplayRect = r;
|
||||
}
|
||||
|
||||
void WaveClip::GetDisplayRect(wxRect* r)
|
||||
{
|
||||
*r = mDisplayRect;
|
||||
}
|
||||
|
||||
/*! @excsafety{Strong} */
|
||||
std::shared_ptr<SampleBlock> WaveClip::AppendNewBlock(
|
||||
samplePtr buffer, sampleFormat format, size_t len)
|
||||
|
||||
Reference in New Issue
Block a user