mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 00:03:52 +02:00
Sequence.cpp does not depend on ODDecodeBlockFile.cpp...
... This frees Sequence.cpp from dependency cycles
This commit is contained in:
@@ -40,10 +40,10 @@
|
||||
#include <wx/ffile.h>
|
||||
#include <wx/log.h>
|
||||
|
||||
#include "blockfile/ODDecodeBlockFile.h"
|
||||
#include "DirManager.h"
|
||||
|
||||
#include "blockfile/SilentBlockFile.h"
|
||||
#include "blockfile/SimpleBlockFile.h"
|
||||
|
||||
#include "InconsistencyException.h"
|
||||
|
||||
@@ -741,20 +741,6 @@ void Sequence::AppendBlock
|
||||
// function gets called in an inner loop.
|
||||
}
|
||||
|
||||
///gets an int with OD flags so that we can determine which ODTasks should be run on this track after save/open, etc.
|
||||
unsigned int Sequence::GetODFlags()
|
||||
{
|
||||
unsigned int ret = 0;
|
||||
for (unsigned int i = 0; i < mBlock.size(); i++) {
|
||||
const auto &file = mBlock[i].f;
|
||||
if(!file->IsDataAvailable())
|
||||
ret |= (static_cast< ODDecodeBlockFile * >( &*file ))->GetDecodeType();
|
||||
else if(!file->IsSummaryAvailable())
|
||||
ret |= ODTask::eODPCMSummary;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
sampleCount Sequence::GetBlockStart(sampleCount position) const
|
||||
{
|
||||
int b = FindBlock(position);
|
||||
|
||||
Reference in New Issue
Block a user