1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 01:21:16 +02:00

Revert r10691 - re-allowing clips to be floating around, not on a sample. There has been much discussion on -devel about this and I think we can keep things in order without this restriction.

This commit is contained in:
martynshaw99
2010-10-05 21:46:51 +00:00
parent 08b98dce53
commit 0d84a2d934

View File

@@ -317,7 +317,7 @@ WaveClip::WaveClip(WaveClip& orig, DirManager *projDirManager)
// current project's DirManager, because we might be copying
// from one project to another
mOffset = QUANTIZED_TIME(orig.mOffset, orig.mRate); // Just in case the offset is off
mOffset = orig.mOffset;
mRate = orig.mRate;
mSequence = new Sequence(*orig.mSequence, projDirManager);
mEnvelope = new Envelope();
@@ -366,7 +366,7 @@ WaveClip::~WaveClip()
void WaveClip::SetOffset(double offset)
{
mOffset = QUANTIZED_TIME(offset, mRate); // put on a sample
mOffset = offset;
mEnvelope->SetOffset(mOffset);
}