mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-29 18:46:05 +02:00
AUP3: Removes OD code related to project file handling
This removes all of the OnDemand code embedded throughout
the main codebase. Individual files related specifically
to OD have been left in place, but removed from the build.
This commit is contained in:
@@ -1414,25 +1414,15 @@ bool Sequence::GetWaveDisplay(float *min, float *max, float *rms, int* bl,
|
||||
break;
|
||||
case 256:
|
||||
// Read triples
|
||||
//check to see if summary data has been computed
|
||||
if (seqBlock.f->IsSummaryAvailable())
|
||||
// Ignore the return value.
|
||||
// This function fills with zeroes if read fails
|
||||
seqBlock.f->Read256(temp.get(), startPosition, num);
|
||||
else
|
||||
//otherwise, mark the display as not yet computed
|
||||
blockStatus = -1 - b;
|
||||
// Ignore the return value.
|
||||
// This function fills with zeroes if read fails
|
||||
seqBlock.f->Read256(temp.get(), startPosition, num);
|
||||
break;
|
||||
case 65536:
|
||||
// Read triples
|
||||
//check to see if summary data has been computed
|
||||
if (seqBlock.f->IsSummaryAvailable())
|
||||
// Ignore the return value.
|
||||
// This function fills with zeroes if read fails
|
||||
seqBlock.f->Read64K(temp.get(), startPosition, num);
|
||||
else
|
||||
//otherwise, mark the display as not yet computed
|
||||
blockStatus = -1 - b;
|
||||
// Ignore the return value.
|
||||
// This function fills with zeroes if read fails
|
||||
seqBlock.f->Read64K(temp.get(), startPosition, num);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1653,11 +1643,6 @@ void Sequence::Delete(sampleCount start, sampleCount len)
|
||||
if (len < 0 || start < 0 || start + len > mNumSamples)
|
||||
THROW_INCONSISTENCY_EXCEPTION;
|
||||
|
||||
//TODO: add a ref-deref mechanism to SeqBlock/BlockArray so we don't have to make this a critical section.
|
||||
//On-demand threads iterate over the mBlocks and the GUI thread deletes them, so for now put a mutex here over
|
||||
//both functions,
|
||||
DeleteUpdateMutexLocker locker(*this);
|
||||
|
||||
const unsigned int numBlocks = mBlock.size();
|
||||
|
||||
const unsigned int b0 = FindBlock(start);
|
||||
|
||||
Reference in New Issue
Block a user