~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to src/WaveClip.cpp

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
   mEnvelope = new Envelope();
129
129
   mEnvelope->Paste(0.0, orig.mEnvelope);
130
130
   mEnvelope->SetOffset(orig.GetOffset());
131
 
   mEnvelope->SetTrackLen(orig.mSequence->GetNumSamples() / orig.mRate);
 
131
   mEnvelope->SetTrackLen(((double)orig.mSequence->GetNumSamples()) / orig.mRate);
132
132
   mWaveCache = new WaveCache(1);
133
133
   mSpecCache = new SpecCache(1, 1, false);
134
134
   mSpecPxCache = new SpecPxCache(1);
766
766
   {
767
767
      MarkChanged();
768
768
      mEnvelope->Paste(t0, other->mEnvelope);
 
769
      mEnvelope->RemoveUnneededPoints();
769
770
      OffsetCutLines(t0, other->GetEndTime()-other->GetStartTime());
770
771
      
771
772
      // Paste cut lines contained in pasted clip
814
815
 
815
816
   TimeToSamplesClip(t0, &s0);
816
817
   TimeToSamplesClip(t1, &s1);
817
 
   
 
818
 
818
819
   if (GetSequence()->Delete(s0, s1-s0))
819
820
   {
820
821
      // msmeyer