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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user