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

« back to all changes in this revision

Viewing changes to src/Sequence.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:
1232
1232
   if (format != mSampleFormat)
1233
1233
      DeleteSamples(temp);
1234
1234
 
 
1235
// JKC: During generate we use Append again and again.
 
1236
// If generating a long sequence this test would give O(n^2) 
 
1237
// performance - not good!
 
1238
#ifdef VERY_SLOW_CHECKING
1235
1239
   ConsistencyCheck(wxT("Append"));
 
1240
#endif
1236
1241
 
1237
1242
   return true;
1238
1243
}
1540
1545
   sMaxDiskBlockSize = bytes;
1541
1546
}
1542
1547
 
 
1548
int Sequence::GetMaxDiskBlockSize()
 
1549
{
 
1550
   return sMaxDiskBlockSize;
 
1551
}
 
1552
 
1543
1553
void Sequence::AppendBlockFile(BlockFile* blockFile)
1544
1554
{
1545
1555
   SeqBlock *w = new SeqBlock();
1548
1558
   mBlock->Add(w);
1549
1559
   mNumSamples += blockFile->GetLength();
1550
1560
 
 
1561
#ifdef VERY_SLOW_CHECKING
1551
1562
   ConsistencyCheck(wxT("AppendBlockFile"));
 
1563
#endif
1552
1564
}
1553
1565
 
1554
1566